Explorar o código

Merge branch 'dev-mata-ldz' of xiongzhu/raex_back into master

lidongze %!s(int64=2) %!d(string=hai) anos
pai
achega
75aecc98e6

+ 5 - 2
src/main/java/com/izouma/nineth/web/AuthenticationController.java

@@ -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));
     }