mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +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 {
|
if err == nil {
|
||||||
err = resetCodesMgr.Delete(code)
|
err = resetCodesMgr.Delete(code)
|
||||||
}
|
}
|
||||||
|
user.LastPasswordChange = util.GetTimeAsMsSinceEpoch(time.Now())
|
||||||
|
user.Filters.RequirePasswordChange = false
|
||||||
return &admin, &user, err
|
return &admin, &user, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user