|
@@ -53,19 +53,21 @@ public class UserAccount extends BaseObject<Integer> {
|
|
|
private Integer gender;
|
|
private Integer gender;
|
|
|
|
|
|
|
|
@Deprecated
|
|
@Deprecated
|
|
|
- public UserAccount(long userId, String mobile, String avatarUrl) {
|
|
|
|
|
|
|
+ public UserAccount(long userId, String mobile, String encodedPassword, String salt) {
|
|
|
this.userId = userId;
|
|
this.userId = userId;
|
|
|
this.accountType = AccountType.tnb.getValue();
|
|
this.accountType = AccountType.tnb.getValue();
|
|
|
this.username = String.format("tnb_%s", userId);
|
|
this.username = String.format("tnb_%s", userId);
|
|
|
this.email = String.format("tnb_%s@reghao.cn", userId);
|
|
this.email = String.format("tnb_%s@reghao.cn", userId);
|
|
|
this.mobile = mobile;
|
|
this.mobile = mobile;
|
|
|
|
|
+ this.encodedPassword = encodedPassword;
|
|
|
|
|
+ this.salt = salt;
|
|
|
this.createAt = LocalDateTime.now();
|
|
this.createAt = LocalDateTime.now();
|
|
|
this.notify = false;
|
|
this.notify = false;
|
|
|
this.role = AccountRole.user.getValue();
|
|
this.role = AccountRole.user.getValue();
|
|
|
this.enabled = true;
|
|
this.enabled = true;
|
|
|
this.locked = false;
|
|
this.locked = false;
|
|
|
this.screenName = this.username;
|
|
this.screenName = this.username;
|
|
|
- this.avatarUrl = avatarUrl;
|
|
|
|
|
|
|
+ this.avatarUrl = "";
|
|
|
this.gender = 2;
|
|
this.gender = 2;
|
|
|
}
|
|
}
|
|
|
|
|
|