Skip to content

Commit

Permalink
fix: password validator
Browse files Browse the repository at this point in the history
  • Loading branch information
oproprioleonardo committed Sep 23, 2024
1 parent 85b8238 commit 94626cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
21 changes: 0 additions & 21 deletions database/schedule.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

public class AuthUtils implements IAuthUtils {

private static final CharacterRule LOWERCASE = new CharacterRule(EnglishCharacterData.LowerCase, 4);
private static final CharacterRule LOWERCASE = new CharacterRule(EnglishCharacterData.LowerCase, 1);
private static final CharacterRule UPPERCASE = new CharacterRule(EnglishCharacterData.UpperCase, 1);
private static final CharacterRule NUMBER = new CharacterRule(EnglishCharacterData.Digit, 1);
private static final LengthRule LENGTH_RULE = new LengthRule(8, Integer.MAX_VALUE);
private static final LengthRule LENGTH_RULE = new LengthRule(6, 16);

private final PasswordValidator passwordValidator = new PasswordValidator(LENGTH_RULE, NUMBER, UPPERCASE, LOWERCASE);
private final String secretKey;
Expand Down

0 comments on commit 94626cb

Please sign in to comment.