|
|
@ -109,14 +109,6 @@ public class SysLoginService {
|
|
|
|
throw new UserDeleteException();
|
|
|
|
throw new UserDeleteException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 用户审核状态检测
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!ExamineState.ENABLE.getCode().equals(user.getExamine())) {
|
|
|
|
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.examine.disabled")));
|
|
|
|
|
|
|
|
throw new UserDisableException();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.blocked", user.getRemark())));
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.blocked", user.getRemark())));
|
|
|
|
throw new UserBlockedException();
|
|
|
|
throw new UserBlockedException();
|
|
|
|