WebClient: update password change timestamp after password reset

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-05-16 19:15:45 +02:00
parent 19da923369
commit e0d9b8bddf
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -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
}