| | |
| | | |
| | | private static final String NO_LOGIN = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.NO_LOGIN_ERROR, "用户未登录")); |
| | | |
| | | private static final String USER_LOCK = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.USER_LOCK_ERROR, "用户ID已禁用")); |
| | | |
| | | public AuthInterceptor(TokenService tokenService) { |
| | | this.tokenService = tokenService; |
| | | } |
| | |
| | | |
| | | if (tokenService.isUidDisable(ue)) { |
| | | tokenService.logout(token, request, response); |
| | | return WebHelper.write2Page(response, JSON.toJSONString(new ResponseMsg<String>(HttpStatus.USER_LOCK_ERROR, SettingData.PWD_ERR_TIME + "分钟内禁止登录"))); |
| | | return WebHelper.write2Page(response, USER_LOCK); |
| | | } |
| | | |
| | | // noinspection AlibabaRemoveCommentedCode |