|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|