|
|
|
@ -560,19 +560,19 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
String username = clientMoniker + client.getString("sub_merchant_id");
|
|
|
|
|
boolean duplicated = true;
|
|
|
|
|
String pwd = RandomStringUtils.random(8, true, true);
|
|
|
|
|
while (duplicated) {
|
|
|
|
|
NewAccountBean account = new NewAccountBean();
|
|
|
|
|
account.setDisplayName(clientMoniker + " Admin");
|
|
|
|
|
account.setRole(PartnerRole.ADMIN.getCode());
|
|
|
|
|
account.setUsername(username);
|
|
|
|
|
account.setPwd(pwd);
|
|
|
|
|
try {
|
|
|
|
|
newAccount(clientMoniker, account, manager, 1);
|
|
|
|
|
duplicated = false;
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
username += "1";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// while (duplicated) {
|
|
|
|
|
// NewAccountBean account = new NewAccountBean();
|
|
|
|
|
// account.setDisplayName(clientMoniker + " Admin");
|
|
|
|
|
// account.setRole(PartnerRole.ADMIN.getCode());
|
|
|
|
|
// account.setUsername(username);
|
|
|
|
|
// account.setPwd(pwd);
|
|
|
|
|
// try {
|
|
|
|
|
// newAccount(clientMoniker, account, manager, 1);
|
|
|
|
|
// duplicated = false;
|
|
|
|
|
// } catch (Exception e) {
|
|
|
|
|
// username += "1";
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
sendInitEmail(client, username, pwd);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|