From 907c4c1890707f720fef507ccc827572f7dc63f2 Mon Sep 17 00:00:00 2001 From: shehandinuka Date: Wed, 20 Sep 2023 12:10:12 +0530 Subject: [PATCH] Add thread local variable clearing --- .../identity/recovery/handler/UserEmailVerificationHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/handler/UserEmailVerificationHandler.java b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/handler/UserEmailVerificationHandler.java index 73d23f4934..ec167fd8a0 100644 --- a/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/handler/UserEmailVerificationHandler.java +++ b/components/org.wso2.carbon.identity.recovery/src/main/java/org/wso2/carbon/identity/recovery/handler/UserEmailVerificationHandler.java @@ -224,6 +224,7 @@ public void handleEvent(Event event) throws IdentityEventException { Utils.publishRecoveryEvent(eventProperties, IdentityEventConstants.Event.POST_ADD_USER_WITH_ASK_PASSWORD, confirmationCode); } + Utils.clearEmailVerifyTemporaryClaim(); } if (IdentityEventConstants.Event.PRE_SET_USER_CLAIMS.equals(eventName)) {