From e0d9b8bddf0c26a7b0ff8d60db4dba96c86f7463 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Tue, 16 May 2023 19:15:45 +0200 Subject: [PATCH] WebClient: update password change timestamp after password reset Signed-off-by: Nicola Murino --- internal/httpd/api_utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/httpd/api_utils.go b/internal/httpd/api_utils.go index 289ac77b..bd62b655 100644 --- a/internal/httpd/api_utils.go +++ b/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 }