Skip to content

Commit eb8a5ff

Browse files
committed
Contraint
1 parent d8d3bb1 commit eb8a5ff

File tree

1 file changed

+2
-4
lines changed
  • src/main/java/com/github/throyer/common/springboot/utils

1 file changed

+2
-4
lines changed

src/main/java/com/github/throyer/common/springboot/utils/Constants.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ public Constants(
2525
}
2626

2727
public static class SECURITY {
28-
public static final JsonWebToken JWT = new JsonWebToken();
2928
public static final Integer DAY_MILLISECONDS = 86400;
30-
31-
public static final Integer PASSWORD_STRENGTH = 10;
32-
public static final BCryptPasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder(PASSWORD_STRENGTH);
29+
public static final JsonWebToken JWT = new JsonWebToken();
30+
public static final BCryptPasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder(10);
3331

3432
public static final String ROLES_KEY_ON_JWT = "roles";
3533
public static final String INVALID_USERNAME = "Invalid username.";

0 commit comments

Comments
 (0)