PasswordPolicyValidator

This commit is contained in:
Crystal.Sea
2020-08-26 17:42:14 +08:00
parent 0fa2bd0f8d
commit 05a517a7a0
3 changed files with 9 additions and 3 deletions

View File

@@ -231,6 +231,12 @@ public class PasswordPolicyValidator {
ConstantsPasswordSetType.PASSWORD_EXPIRED);
}
}
//initial password need change
if(userInfo.getLoginCount()<=0) {
WebContext.getSession().setAttribute(WebConstants.CURRENT_LOGIN_USER_PASSWORD_SET_TYPE,
ConstantsPasswordSetType.INITIAL_PASSWORD);
}
return true;
}