Skip to content

Commit

Permalink
Use admin initiate constant from acc lock handler
Browse files Browse the repository at this point in the history
  • Loading branch information
bhagyasakalanka committed May 17, 2024
1 parent 0aa61ac commit ee266f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.wso2.carbon.identity.event.event.Event;
import org.wso2.carbon.identity.governance.IdentityGovernanceUtil;
import org.wso2.carbon.identity.governance.service.notification.NotificationChannels;
import org.wso2.carbon.identity.handler.event.account.lock.constants.AccountConstants;
import org.wso2.carbon.identity.mgt.policy.PolicyViolationException;
import org.wso2.carbon.identity.recovery.AuditConstants;
import org.wso2.carbon.identity.recovery.IdentityRecoveryClientException;
Expand Down Expand Up @@ -72,7 +73,6 @@
import java.util.Map;

import static org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.AUDIT_FAILED;
import static org.wso2.carbon.identity.recovery.IdentityRecoveryConstants.ADMIN_INITIATED;
import static org.wso2.carbon.registry.core.RegistryConstants.PATH_SEPARATOR;
import static org.wso2.carbon.user.core.UserCoreConstants.PRIMARY_DEFAULT_DOMAIN_NAME;

Expand Down Expand Up @@ -925,7 +925,7 @@ private HashMap<String, String> getAccountStateClaims(UserRecoveryData userRecov
|| RecoveryScenarios.ADMIN_FORCED_PASSWORD_RESET_VIA_EMAIL_LINK.equals(recoveryScenario)
|| RecoveryScenarios.ADMIN_FORCED_PASSWORD_RESET_VIA_OTP.equals(recoveryScenario)
|| RecoveryScenarios.ASK_PASSWORD.equals(recoveryScenario)) {
IdentityUtil.threadLocalProperties.get().put(ADMIN_INITIATED, false);
IdentityUtil.threadLocalProperties.get().put(AccountConstants.ADMIN_INITIATED, false);
}

if (Utils.isAccountStateClaimExisting(userRecoveryData.getUser().getTenantDomain())) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@
</carbon.identity.framework.imp.pkg.version.range>

<!--Carbon Identity Extension Versions-->
<carbon.identity.account.lock.handler.version>1.1.12</carbon.identity.account.lock.handler.version>
<carbon.identity.account.lock.handler.version>1.9.4</carbon.identity.account.lock.handler.version>
<carbon.identity.account.lock.handler.imp.pkg.version.range>[1.1.12, 2.0.0)
</carbon.identity.account.lock.handler.imp.pkg.version.range>

Expand Down

0 comments on commit ee266f2

Please sign in to comment.