Update TrustedAuthenticationProvider.java

This commit is contained in:
shimingxy
2025-09-08 16:43:20 +08:00
parent c598897820
commit 695fccd99f

View File

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