Browse Source
Fix password-hint check
Signed-off-by: BlackDex <black.dex@gmail.com>
pull/5180/head
BlackDex
5 months ago
No known key found for this signature in database
GPG Key ID: 58C80A2AA6C765E1
1 changed files with
1 additions and
1 deletions
-
src/api/core/accounts.rs
|
|
@ -842,7 +842,7 @@ struct PasswordHintData { |
|
|
|
|
|
|
|
#[post("/accounts/password-hint", data = "<data>")] |
|
|
|
async fn password_hint(data: Json<PasswordHintData>, mut conn: DbConn) -> EmptyResult { |
|
|
|
if !CONFIG.mail_enabled() && !CONFIG.show_password_hint() { |
|
|
|
if !CONFIG.mail_enabled() || !CONFIG.show_password_hint() { |
|
|
|
err!("This server is not configured to provide password hints."); |
|
|
|
} |
|
|
|
|
|
|
|