Remove useless check in SetPassword()

This commit is contained in:
Yang Luo
2023-06-17 00:58:31 +08:00
parent 0f57ac297b
commit a932b76fba
12 changed files with 11 additions and 26 deletions

View File

@ -410,10 +410,6 @@ func (c *ApiController) SetPassword() {
c.ResponseError(c.T("user:New password cannot contain blank space."))
return
}
if len(newPassword) <= 5 {
c.ResponseError(c.T("user:New password must have at least 6 characters"))
return
}
userId := util.GetId(userOwner, userName)