mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
WebClient: update password change timestamp after password reset
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -752,6 +752,8 @@ func handleResetPassword(r *http.Request, code, newPassword string, isAdmin bool
|
||||
if err == nil {
|
||||
err = resetCodesMgr.Delete(code)
|
||||
}
|
||||
user.LastPasswordChange = util.GetTimeAsMsSinceEpoch(time.Now())
|
||||
user.Filters.RequirePasswordChange = false
|
||||
return &admin, &user, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user