|
@@ -74,7 +74,7 @@ public class DefaultUserDetailsService implements UserDetailsService {
|
|
|
if (data == null) {
|
|
|
throw new UsernameNotFoundException("账户不存在");
|
|
|
}
|
|
|
- if (UserLockFlag.LOCK.equals(data.getLockFlag())) {
|
|
|
+ if (UserLockFlag.LOCKED.equals(data.getLockFlag())) {
|
|
|
throw new LockedException("账户被锁定");
|
|
|
}
|
|
|
}else if(SysUserType.TEACHER.getCode().equals(clientId)) {
|
|
@@ -82,7 +82,7 @@ public class DefaultUserDetailsService implements UserDetailsService {
|
|
|
if (data == null) {
|
|
|
throw new UsernameNotFoundException("账户不存在");
|
|
|
}
|
|
|
- if (UserLockFlag.LOCK.equals(data.getLockFlag())) {
|
|
|
+ if (UserLockFlag.LOCKED.equals(data.getLockFlag())) {
|
|
|
throw new LockedException("账户被锁定");
|
|
|
}
|
|
|
}else if(SysUserType.SYSTEM.getCode().equals(clientId)) {
|
|
@@ -90,7 +90,7 @@ public class DefaultUserDetailsService implements UserDetailsService {
|
|
|
if (data == null) {
|
|
|
throw new UsernameNotFoundException("账户不存在");
|
|
|
}
|
|
|
- if (UserLockFlag.LOCK.equals(data.getLockFlag())) {
|
|
|
+ if (UserLockFlag.LOCKED.equals(data.getLockFlag())) {
|
|
|
throw new LockedException("账户被锁定");
|
|
|
}
|
|
|
}
|