Fix user creation password auto generation

revert-70aa11f8
Pahansith 6 years ago
parent a9f19a6afb
commit 4a7f9bb7ce

@ -143,7 +143,13 @@ public class UserManagementServiceImpl implements UserManagementService {
"was refused.").build()).build(); "was refused.").build()).build();
} }
String initialUserPassword = this.generateInitialUserPassword(); String initialUserPassword;
if (userInfo.getPassword() != null) {
initialUserPassword = userInfo.getPassword();
} else {
initialUserPassword = this.generateInitialUserPassword();
}
Map<String, String> defaultUserClaims = Map<String, String> defaultUserClaims =
this.buildDefaultUserClaims(userInfo.getFirstname(), userInfo.getLastname(), this.buildDefaultUserClaims(userInfo.getFirstname(), userInfo.getLastname(),
userInfo.getEmailAddress()); userInfo.getEmailAddress());

Loading…
Cancel
Save