|
@@ -61,13 +61,14 @@ public class PhoneAuthenticationProvider extends AbstractAuthenticationProvider
|
|
|
if (userInfo == null) {
|
|
|
throw new InternalAuthenticationServiceException("账户不存在");
|
|
|
}
|
|
|
- if(loginEntity.getClientId().equalsIgnoreCase("system")){
|
|
|
- Integer lockFlag = sysUserService.queryEmployeeLockFlag(userInfo.getSysUser().getId());
|
|
|
- if(lockFlag == 1){
|
|
|
- throw new LockedException("账户被锁定");
|
|
|
+ if(!userInfo.getSysUser().getIsSuperAdmin()){
|
|
|
+ if(loginEntity.getClientId().equalsIgnoreCase("system")){
|
|
|
+ Integer lockFlag = sysUserService.queryEmployeeLockFlag(userInfo.getSysUser().getId());
|
|
|
+ if(lockFlag == 1){
|
|
|
+ throw new LockedException("账户被锁定");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
UserDetails loadedUser;
|
|
|
try {
|
|
|
loadedUser = userDetailsService.loadUserByUsername(phone);
|