FIX: add login attempt correctly

Due to a typing mistake some login attempts were added to the login_attempts_usernames table instead of login_attempts.
This commit is contained in:
Keanu D?lle 2021-11-25 07:24:26 +01:00
parent 519df4ae5f
commit 89a6232b2c

View File

@ -30,7 +30,7 @@ pub fn check_login(login_form: LoginForm, settings: &State<Settings>) -> Result<
if result{
return Err(LoginError::MaxLoginAttemptsExceeded)
}else{
match add_login_attempt_username(settings, login_form.login_email.to_lowercase()){
match add_login_attempt(settings, login_form.login_email.to_lowercase()){
Ok(_) => return Err(LoginError::UserNotFound),
Err(_) => return Err(LoginError::DatabaseError)
}