master
wangning 7 years ago
parent 63aef36f4e
commit 962985fa0a

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

Loading…
Cancel
Save