fix(auth): synchronize need_change_password across login, user-info and repositories

This commit is contained in:
ryan
2026-08-29 11:49:14 +08:00
parent 107251891f
commit d3d7c783a9
4 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ func BuildBasicUserInfo(user *contracts.UserDTO, needChange bool) BasicUserInfo
Email: user.Email,
AvatarURL: user.AvatarURL,
IsAdmin: user.IsAdmin,
NeedChangePassword: needChange,
NeedChangePassword: needChange || user.NeedChangePassword,
Bio: user.Bio,
Phone: user.Phone,
Gender: user.Gender,