!57 去掉密码策略校验

Merge pull request !57 from zwj/N/A
This commit is contained in:
MaxKeyTop 2025-08-28 06:43:04 +00:00 committed by Gitee
commit c598897820
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -60,10 +60,7 @@ public class TrustedAuthenticationProvider extends AbstractAuthenticationProvide
UserInfo loadeduserInfo = loadUserInfo(loginCredential.getUsername(), ""); UserInfo loadeduserInfo = loadUserInfo(loginCredential.getUsername(), "");
statusValid(loginCredential , loadeduserInfo); statusValid(loginCredential , loadeduserInfo);
if (loadeduserInfo != null) { if (loadeduserInfo != null) {
//Validate PasswordPolicy
authenticationRealm.getLoginService().passwordPolicyValid(loadeduserInfo);
//apply PasswordSetType and resetBadPasswordCount
authenticationRealm.getLoginService().applyPasswordPolicy(loadeduserInfo);
Authentication authentication = createOnlineTicket(loginCredential,loadeduserInfo); Authentication authentication = createOnlineTicket(loginCredential,loadeduserInfo);
authenticationRealm.insertLoginHistory( loadeduserInfo, authenticationRealm.insertLoginHistory( loadeduserInfo,