We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14c5653 + 3aac896 commit fa1a408Copy full SHA for fa1a408
1 file changed
internal/handlers/users/auth/login.go
@@ -240,7 +240,7 @@ func (h *authHandler) RecoverPassword(c *gin.Context) {
240
}
241
242
if token != "" {
243
- if recoveryInfo.Password != "" && len(recoveryInfo.Password) < 8 {
+ if len(recoveryInfo.Password) < 8 {
244
_ = c.Error(errors.NewBadRequestError("password must be at least 8 characters long"))
245
return
246
0 commit comments