feat: fix forbidden and soft-delete check in forget password page

This commit is contained in:
Yang Luo
2024-01-19 22:13:02 +08:00
parent 88130bf020
commit 6a00657e42
2 changed files with 9 additions and 5 deletions

View File

@ -473,11 +473,6 @@ func (c *ApiController) SetPassword() {
return
}
if targetUser.IsForbidden || targetUser.IsDeleted {
c.ResponseError(c.T("account:Failed to set password, the user is either forbidden or deleted"))
return
}
isAdmin := c.IsAdmin()
if isAdmin {
if oldPassword != "" {