zwzw1219 2017-10-14 18:07:30 +08:00
parent 6fa512f23c
commit ba9152bf7d
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
if (sysUser == null) {
throw new AuthenticationCredentialsNotFoundException("用户名不存在");
} else if (sysUser.getStatus() == Status.LOCKED) {
throw new LockedException("用户被锁定");
throw new LockedException("用户被锁定,请联系管理员");
} else if (sysUser.getStatus() == Status.DISABLED) {
throw new DisabledException("用户已作废");
}