shikeying
2024-05-08 8924870a053f0b882ada86421c062cbdb9cff093
iplatform-base-security/src/main/java/com/iplatform/security/DefaultSecuritySpi.java
@@ -126,8 +126,8 @@
        } catch (Exception e){
            this.recordLoginInfo(requestLogin.getUsername(), String.valueOf(ResponseCode.ERROR.getCode()), "登录未成功认证", 0, null, null);
            if(e instanceof UsernameNotFoundException){
//                logger.debug(".............用户不存在:" + requestLogin.getUsername());
                throw new LoginException("用户账号不存在,或已停用:" + requestLogin.getUsername(), e, true);
//                throw new LoginException("用户账号不存在,或已停用:" + requestLogin.getUsername(), e, true);
                throw new LoginException("用户账号不存在,或已停用:" + requestLogin.getUsername(), null, true);
            }
            if (e instanceof BadCredentialsException){
//                return ResponseValue.error(ResponseCode.USER_CREDENTIALS_ERROR.getCode(), ResponseCode.USER_CREDENTIALS_ERROR.getMessage());