|
|
@@ -56,15 +56,15 @@ public class RegisterNoCodeManager extends AbstractLoginManager implements LogMa |
|
|
|
private AccountInfo from(RegisterNoCodeRequest request,AccountInfo accountInfo) { |
|
|
|
if (accountInfo == null){ |
|
|
|
accountInfo = new AccountInfo(); |
|
|
|
accountInfo.setCreateTime(LocalDateTime.now()); |
|
|
|
accountInfo.setLoginPass(hasText(request.getLoginPass()) ? request.getLoginPass() : createPassword(10)); |
|
|
|
accountInfo.setNeedChangePasswordNow("0"); // 该用户主动修改密码后,设置其登录后不用提示去自行修改密码 |
|
|
|
} |
|
|
|
// AccountInfo accountInfo = new AccountInfo(); |
|
|
|
accountInfo.setAppId(appId); |
|
|
|
accountInfo.setMobile(request.getMobile()); |
|
|
|
accountInfo.setAccount(request.getMobile()); |
|
|
|
accountInfo.setNickName(request.getNickName()); |
|
|
|
accountInfo.setCreateTime(LocalDateTime.now()); |
|
|
|
accountInfo.setNeedChangePasswordNow("0"); // 该用户主动修改密码后,设置其登录后不用提示去自行修改密码 |
|
|
|
String openId = UUID.randomUUID().toString().replaceAll("-", ""); |
|
|
|
accountInfo.setOpenId(openId); |
|
|
|
accountInfo.setIdType(request.getIdType()); |