diff --git a/internal/handlers/users/auth/login.go b/internal/handlers/users/auth/login.go index 70f5cf4..ad03a8f 100644 --- a/internal/handlers/users/auth/login.go +++ b/internal/handlers/users/auth/login.go @@ -240,7 +240,7 @@ func (h *authHandler) RecoverPassword(c *gin.Context) { } if token != "" { - if recoveryInfo.Password != "" && len(recoveryInfo.Password) < 8 { + if len(recoveryInfo.Password) < 8 { _ = c.Error(errors.NewBadRequestError("password must be at least 8 characters long")) return }