From 1e8ceb38a91906eeb7d99e03045b9325198d37bb Mon Sep 17 00:00:00 2001 From: zwj <6513209+imagine0820@user.noreply.gitee.com> Date: Thu, 28 Aug 2025 03:07:00 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=AF=86=E7=A0=81=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E6=A0=A1=E9=AA=8C=20=E5=BD=93=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=AC=A1=E6=95=B0=E8=B6=85=E8=BF=876?= =?UTF-8?q?=E6=AC=A1=E8=A2=AB=E6=9A=82=E5=AE=9A=E9=94=81=E5=AE=9A=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=A4=BE=E4=BA=A4=E7=99=BB=E5=BD=95=E6=97=B6=E4=B9=9F?= =?UTF-8?q?=E4=BC=9A=E6=8A=A5=E9=94=99=E8=A2=AB=E9=94=81=E5=AE=9A=EF=BC=8C?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF=E8=BF=87=E5=A4=9A=E8=A2=AB?= =?UTF-8?q?=E9=94=81=E5=AE=9A=E6=98=AF=E4=B8=BA=E4=BA=86=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E6=9A=B4=E5=8A=9B=E7=A0=B4=E8=A7=A3=E5=AF=86=E7=A0=81=20=20?= =?UTF-8?q?=E4=B8=8D=E5=BA=94=E8=AF=A5=E5=BD=B1=E5=93=8D=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zwj <6513209+imagine0820@user.noreply.gitee.com> --- .../authn/provider/impl/TrustedAuthenticationProvider.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/maxkey-authentications/maxkey-authentication-provider/src/main/java/org/dromara/maxkey/authn/provider/impl/TrustedAuthenticationProvider.java b/maxkey-authentications/maxkey-authentication-provider/src/main/java/org/dromara/maxkey/authn/provider/impl/TrustedAuthenticationProvider.java index 69bc61a52..8175d8bad 100644 --- a/maxkey-authentications/maxkey-authentication-provider/src/main/java/org/dromara/maxkey/authn/provider/impl/TrustedAuthenticationProvider.java +++ b/maxkey-authentications/maxkey-authentication-provider/src/main/java/org/dromara/maxkey/authn/provider/impl/TrustedAuthenticationProvider.java @@ -60,10 +60,7 @@ 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,