|
|
@@ -153,13 +153,16 @@ public class AuthenticationController {
|
|
|
|
|
|
@PostMapping("/meta/phoneRegister")
|
|
|
@ApiOperation(value = "元宇宙手机号密码注册")
|
|
|
- public String metaPhonePwdLogin(String phone, String code, String password, String inviteCode, Long invitor,
|
|
|
+ public String metaPhonePwdLogin(String phone, String code, String password1, String password2, String inviteCode, Long invitor,
|
|
|
Long collectionId, Long showroomId, InviteType inviteType, String name) {
|
|
|
+ if (!password1.equals(password2)){
|
|
|
+ throw new BusinessException("两次密码必须输入一致!");
|
|
|
+ }
|
|
|
if (!contentAuditService.auditText(name)) {
|
|
|
throw new BusinessException("昵称包含不合法内容!");
|
|
|
}
|
|
|
User user = userService
|
|
|
- .phoneRegister(phone, code, password, inviteCode, invitor, collectionId, showroomId, inviteType, name);
|
|
|
+ .phoneRegister(phone, code, password1, inviteCode, invitor, collectionId, showroomId, inviteType, name);
|
|
|
return jwtTokenUtil.generateToken(JwtUserFactory.create(user));
|
|
|
}
|
|
|
|