|
@@ -59,7 +59,7 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
String clientId = loginEntity.getClientId();
|
|
|
|
|
|
// 验证码验证
|
|
|
- if (!clientId.startsWith("QR_") && !smsCodeService.verifyValidCode(phone, smsCode)) {
|
|
|
+ if (!clientId.startsWith("qr_") && !smsCodeService.verifyValidCode(phone, smsCode)) {
|
|
|
throw new BadCredentialsException("验证码校验失败");
|
|
|
}
|
|
|
|
|
@@ -138,7 +138,7 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
sysUserDeviceService.bindDevice(clientId, user.getId(), deviceNum, userInfo.getSysUser().getTenantId());
|
|
|
}
|
|
|
|
|
|
- if (clientId.startsWith("QR_")) {
|
|
|
+ if (clientId.startsWith("qr_")) {
|
|
|
} else if (!userInfo.getSysUser().getUserType().contains(clientId)) {
|
|
|
if (isRegister == false || StringUtils.equals("SYSTEM", clientId)) {
|
|
|
throw new LockedException("用户不存在");
|