mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-24 13:00:39 +00:00
fix password hint check
don't show password hints if you have disabled the hints with PASSWORD_HINTS_ALLOWED=false or if you have not configured mail and opted into showing password hints
This commit is contained in:
parent
e927b8aa5e
commit
b224721c8a
1 changed files with 1 additions and 1 deletions
|
@ -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.password_hints_allowed() || (!CONFIG.mail_enabled() && !CONFIG.show_password_hint()) {
|
||||
err!("This server is not configured to provide password hints.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue