Skip to content

Commit fa1a408

Browse files
authored
Merge pull request #70 from ClassConnect-org/dev
fix: do not allow to change to empty pw
2 parents 14c5653 + 3aac896 commit fa1a408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/handlers/users/auth/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func (h *authHandler) RecoverPassword(c *gin.Context) {
240240
}
241241

242242
if token != "" {
243-
if recoveryInfo.Password != "" && len(recoveryInfo.Password) < 8 {
243+
if len(recoveryInfo.Password) < 8 {
244244
_ = c.Error(errors.NewBadRequestError("password must be at least 8 characters long"))
245245
return
246246
}

0 commit comments

Comments
 (0)