mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 04:22:08 +08:00
Update TrustedAuthenticationProvider.java
This commit is contained in:
@@ -60,7 +60,12 @@ 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user