vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 37d88be2be484ab044d0954600049909876348ef
parent 1c641d7635d12c9fcb1efce6262c6f33606b61aa
Author: Jean-Christophe BEGUE <jean-Christophe.begue@fraudbuster.mobi>
Date:   Tue, 11 Sep 2018 13:12:24 +0200

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

Diffstat:
Msrc/api/core/accounts.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs @@ -264,7 +264,7 @@ fn password_hint(data: JsonUpcase<PasswordHintData>, conn: DbConn) -> EmptyResul let data: PasswordHintData = data.into_inner().data; 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);