From 3aac89666ed884f21b28b216ff3121e4ca48fc66 Mon Sep 17 00:00:00 2001 From: maxogod Date: Sun, 8 Jun 2025 15:35:09 -0300 Subject: [PATCH] fix: do not allow to change to empty pw --- internal/handlers/users/auth/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }