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:
parent
519df4ae5f
commit
89a6232b2c
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue