Skip to content

Commit

Permalink
[*] Generating random passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-karpovich committed Mar 19, 2024
1 parent 4532fa3 commit 87b4cdb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public SettingsAuthorizationProvider(SecurityOauth2ProviderSettings providerSett
String pass = user.getPassword();
if (providerType == ProviderType.BUILT_IN_OAUTH && StringUtil.isNullOrEmpty(user.getPassword())) {
pass = getRandomAlphaNumeric(16);
new BCryptPasswordEncoder().encode(pass);
LOGGER.warn("Generating random password for user (%s): %s").with(user.getUsername()).with(pass);
pass = new BCryptPasswordEncoder().encode(pass);
}
users.put(
user.getUsername(),
Expand Down

0 comments on commit 87b4cdb

Please sign in to comment.