|
|
@@ -200,7 +200,11 @@ public class UserService {
|
|
|
throw CustomErrorException.emailAlreadyExist();
|
|
|
});
|
|
|
userVO.setName(registerVO.getName());
|
|
|
- userVO.setPhone("platform_yuantu_" + userVO.getUsername());
|
|
|
+ String phone = userVO.getUsername();
|
|
|
+ while(phone.length() < 11){
|
|
|
+ phone += "X";
|
|
|
+ }
|
|
|
+ userVO.setPhone(phone);
|
|
|
userVO.setRole(UserRole.STUDENT);
|
|
|
User user = userMapper.userVOToUser(userVO);
|
|
|
String encodedPassword = passwordEncoder.encode(userVO.getUsername());
|