2
0
Эх сурвалжийг харах

Update TrustedAuthenticationProvider.java

shimingxy 3 өдөр өмнө
parent
commit
695fccd99f

+ 6 - 1
maxkey-authentications/maxkey-authentication-provider/src/main/java/org/dromara/maxkey/authn/provider/impl/TrustedAuthenticationProvider.java

@@ -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,