mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01: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…
Add table
Add a link
Reference in a new issue