Fix user creation password auto generation

revert-70aa11f8
Pahansith Gunathilake 6 years ago committed by Charitha Goonetilleke
parent a9f19a6afb
commit 920a66a165

@ -143,7 +143,13 @@ public class UserManagementServiceImpl implements UserManagementService {
"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 =
this.buildDefaultUserClaims(userInfo.getFirstname(), userInfo.getLastname(),
userInfo.getEmailAddress());

Loading…
Cancel
Save