mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
WebClient: update password change timestamp after password reset
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
19da923369
commit
e0d9b8bddf
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue