Quellcode durchsuchen

注册图形认证

licailing vor 3 Jahren
Ursprung
Commit
aa5481900c

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

@@ -71,10 +71,10 @@ public class AuthenticationController {
     @ApiOperation(value = "手机号密码注册")
     public String phonePwdLogin(String phone, String code, String password, String inviteCode, Long invitor,
                                 Long collectionId, String captcha, String captchaKey) {
-        boolean verify = captchaService.verify(captchaKey, captcha);
-        if (!verify) {
-            throw new BusinessException("验证码错误");
-        }
+//        boolean verify = captchaService.verify(captchaKey, captcha);
+//        if (!verify) {
+//            throw new BusinessException("验证码错误");
+//        }
         User user = userService.phoneRegister(phone, code, password, inviteCode, invitor, collectionId);
         return jwtTokenUtil.generateToken(JwtUserFactory.create(user));
     }