Commit 3f3ed908f90c6168a6ea7672f5b74c99b41ab49d
1 parent
430b20d859
Exists in
master
and in
8 other branches
登录时判断是否禁用
Showing 1 changed file with 5 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/UsersController.java
View file @
3f3ed90
... | ... | @@ -244,6 +244,11 @@ |
244 | 244 | return; |
245 | 245 | } |
246 | 246 | |
247 | + if(!users.get(0).getEnable().equals(1)) { | |
248 | + ResultUtils.buildParameterErrorResultAndWrite(response, "该账户已被禁用"); | |
249 | + return; | |
250 | + } | |
251 | + | |
247 | 252 | LoginContext loginContext = new LoginContext(); |
248 | 253 | loginContext.setErrormsg("服务器内部错误!"); |
249 | 254 | if(null != code) { |