区分大小写逻辑修改

yun-zuoyi
feng.liu 3 years ago
parent 86fb3ab126
commit b03416cd49

@ -15,6 +15,7 @@ import cn.estsh.impp.framework.boot.util.*;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@ -498,6 +499,9 @@ public class SysUserPasswordUtil {
*/
public void checkLoginErrorNumber(String loginName, ResultBean resultBean, Exception e) {
SysUser user = userService.getSysUserByLoginName(loginName);
if (!user.getUserLoginName().equals(loginName)){
user = null;
}
if (Objects.nonNull(user)) {
checkLoginErrorNumber(user.getId(), resultBean, e);
}

Loading…
Cancel
Save