Selaa lähdekoodia

WebClient: update password change timestamp after password reset

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 2 vuotta sitten
vanhempi
sitoutus
e0d9b8bddf
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      internal/httpd/api_utils.go

+ 2 - 0
internal/httpd/api_utils.go

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