Improved error handling.
This commit is contained in:
parent
a72b777520
commit
4cc37fe336
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ returns
|
|||
end
|
||||
|
||||
# check failed logins
|
||||
max_login_failed = Setting.get('password_max_login_failed') || 10
|
||||
max_login_failed = Setting.get('password_max_login_failed').to_i || 10
|
||||
if user && user.login_failed > max_login_failed
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue