From ae2f0b95c95ec2abab9799924773a8ffe1e1baf6 Mon Sep 17 00:00:00 2001 From: ZiyamSanthosh Date: Sat, 23 Mar 2024 00:57:14 +0530 Subject: [PATCH 1/2] improve logic to fix spId and sp conflict --- .../src/main/webapp/self-registration-complete.jsp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-complete.jsp b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-complete.jsp index e96494c63a9..4a75c054034 100644 --- a/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-complete.jsp +++ b/identity-apps-core/apps/recovery-portal/src/main/webapp/self-registration-complete.jsp @@ -124,9 +124,7 @@ if (StringUtils.isNotBlank(spId)) { try { ApplicationDataRetrievalClient applicationDataRetrieval = new ApplicationDataRetrievalClient(); - if (spId.equals("My_Account")) { - sp = "My Account"; - } else { + if (!sp.equals("My Account")) { sp = applicationDataRetrieval.getApplicationName(tenantDomain,spId); } } catch (Exception e) { From 3317f1eda786173a010c5a179df42e5cf8a36d03 Mon Sep 17 00:00:00 2001 From: ZiyamSanthosh Date: Sat, 23 Mar 2024 01:00:13 +0530 Subject: [PATCH 2/2] add changeset --- .changeset/honest-ties-rhyme.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/honest-ties-rhyme.md diff --git a/.changeset/honest-ties-rhyme.md b/.changeset/honest-ties-rhyme.md new file mode 100644 index 00000000000..7db6511e0df --- /dev/null +++ b/.changeset/honest-ties-rhyme.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Improve logic to fix conflict on sp and spId params