diff --git a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/password/PasswordRecoveryManagerImpl.java b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/password/PasswordRecoveryManagerImpl.java index 0a4b7aaa5b..238b351fcf 100644 --- a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/password/PasswordRecoveryManagerImpl.java +++ b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/internal/service/impl/password/PasswordRecoveryManagerImpl.java @@ -273,8 +273,8 @@ public PasswordResetCodeDTO confirm(String otp, String confirmationCode, String } catch (IdentityRecoveryException e) { // This is a fallback logic to support already initiated email link based recovery flows using the // recovery V1 API, which do not have recovery flow ids. - UserRecoveryData userRecoveryData = userAccountRecoveryManager - .getUserRecoveryDataFromConfirmationCode(recoveryFlowId, recoveryFlowId, RecoverySteps.UPDATE_PASSWORD); + UserRecoveryData userRecoveryData = userAccountRecoveryManager.getUserRecoveryDataFromConfirmationCode( + recoveryFlowId, recoveryFlowId, RecoverySteps.UPDATE_PASSWORD); if (!tenantDomain.equals(userRecoveryData.getUser().getTenantDomain())) { throw Utils.handleClientException( IdentityRecoveryConstants.ErrorMessages.ERROR_CODE_USER_TENANT_DOMAIN_MISS_MATCH_WITH_CONTEXT, diff --git a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/password/NotificationPasswordRecoveryManager.java b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/password/NotificationPasswordRecoveryManager.java index 4d93ce374e..b4055e3f08 100644 --- a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/password/NotificationPasswordRecoveryManager.java +++ b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/password/NotificationPasswordRecoveryManager.java @@ -688,8 +688,8 @@ public User updateUserPassword(String code, String confirmationCode, String pass } catch (IdentityRecoveryException e) { // This is a fallback logic to support already initiated email link based recovery flows using the // recovery V1 API, which do not have recovery flow ids. - userRecoveryData = userAccountRecoveryManager.getUserRecoveryDataFromConfirmationCode(code, confirmationCode, - RecoverySteps.UPDATE_PASSWORD); + userRecoveryData = userAccountRecoveryManager.getUserRecoveryDataFromConfirmationCode(code, + confirmationCode, RecoverySteps.UPDATE_PASSWORD); validateCallback(properties, userRecoveryData.getUser().getTenantDomain()); publishEvent(userRecoveryData.getUser(), null, code, password, properties, IdentityEventConstants.Event.PRE_ADD_NEW_PASSWORD, userRecoveryData);