diff --git a/src/main/java/net/diaowen/common/base/controller/SecurityController.java b/src/main/java/net/diaowen/common/base/controller/SecurityController.java index a784a77..cb3f288 100644 --- a/src/main/java/net/diaowen/common/base/controller/SecurityController.java +++ b/src/main/java/net/diaowen/common/base/controller/SecurityController.java @@ -101,7 +101,11 @@ public class SecurityController { // ExcessiveAttemptsException超过登录次数 error = "超过登录次数限制"; } + }else{ + error = "未找到userName对应用户"; } + }else{ + error = "登录名userName不能为空"; } }catch (Exception e) { e.printStackTrace();