Skip to content

Commit

Permalink
Fix default maximum memory
Browse files Browse the repository at this point in the history
The default maximum memory was set 65535, but should have been 65536.
  • Loading branch information
dreezey committed Dec 5, 2019
1 parent 7eadcfc commit 2d9927b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

public class Argon2MemoryPasswordPolicyProviderFactory implements PasswordPolicyProvider, PasswordPolicyProviderFactory {
public static final String ID = "argon2Memory";
private final int DEFAULT_ARGON2_MEMORY = 65536;

@Override
public Argon2MemoryPasswordPolicyProviderFactory create(KeycloakSession session) {
Expand Down Expand Up @@ -57,7 +58,7 @@ public String getConfigType() {

@Override
public String getDefaultConfigValue() {
return String.valueOf(65535);
return String.valueOf(DEFAULT_ARGON2_MEMORY);
}

@Override
Expand Down

0 comments on commit 2d9927b

Please sign in to comment.