Disable the user account after 10 failed password attempts
This commit is contained in:
@ -67,8 +67,9 @@ func ResetPassword(s *xorm.Session, reset *PasswordReset) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
user.Status = StatusActive
|
||||
_, err = s.
|
||||
Cols("password").
|
||||
Cols("password", "status").
|
||||
Where("id = ?", user.ID).
|
||||
Update(user)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user