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