|
@@ -59,7 +59,7 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
String clientId = loginEntity.getClientId();
|
|
|
|
|
|
// 验证码验证
|
|
|
- if (!clientId.toLowerCase().startsWith("qr_") && !smsCodeService.verifyValidCode(phone, smsCode)) {
|
|
|
+ if (!loginEntity.getClientId().toLowerCase().startsWith("qr_") && !smsCodeService.verifyValidCode(phone, smsCode)) {
|
|
|
throw new BadCredentialsException("验证码校验失败");
|
|
|
}
|
|
|
|