1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-26 05:50:29 +01:00

return an error when email adress for password hint is not valid

Dieser Commit ist enthalten in:
Jean-Christophe BEGUE 2018-09-11 13:12:24 +02:00
Ursprung 1c641d7635
Commit 37d88be2be

Datei anzeigen

@ -264,7 +264,7 @@ fn password_hint(data: JsonUpcase<PasswordHintData>, conn: DbConn) -> EmptyResul
let data: PasswordHintData = data.into_inner().data; let data: PasswordHintData = data.into_inner().data;
if !is_valid_email(&data.Email) { if !is_valid_email(&data.Email) {
return Ok(()); return err!("This email address is not valid...");
} }
let user = User::find_by_mail(&data.Email, &conn); let user = User::find_by_mail(&data.Email, &conn);