username = "";
}
if (password == null) {
password = "";
}
UsernamePasswordAuthenticationToken authRequest = null;
if (caid == null || caid.length() == 0) {
if (StringUtils.isNotEmpty(aduser)) {
// ad登录
this.checkCodeValide(request);
authRequest = new CustomUsernameAuthenticationToken(aduser);
request.getSession().setAttribute(
ACEGI_SECURITY_LAST_USERNAME_KEY, username);
} else {
if ((epdlh == null || epdlh.length() == 0)) {
this.checkCodeValide(request);
}
authRequest = new UsernamePasswordAuthenticationToken(username, password);
// Place the last username attempted into HttpSession for views
request.getSession().setAttribute(ACEGI_SECURITY_LAST_USERNAME_KEY, username);
}
} else {