From 6880ed72baae5792409f5c998c08b36df6fd7d5d Mon Sep 17 00:00:00 2001 From: anna Date: Wed, 14 Aug 2024 17:03:29 +0800 Subject: [PATCH] iAM Smart set brokerPage=true --- src/pages/authentication/RegisterCustom.js | 4 ++-- src/pages/authentication/auth-forms/AuthLoginCustom.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/authentication/RegisterCustom.js b/src/pages/authentication/RegisterCustom.js index a185ba2..50cccd0 100644 --- a/src/pages/authentication/RegisterCustom.js +++ b/src/pages/authentication/RegisterCustom.js @@ -51,7 +51,7 @@ const RegisterCustom = () => { + "&scope=" + encodeURIComponent("eidapi_auth eidapi_profiles") + "&lang=" + (locale === 'en' ? "en-US" : locale === 'zh-HK' ? "zh-HK" : "zh-CN") //+"&state=" - + "&brokerPage=false" + + "&brokerPage=true" window.location.assign(url); } }); @@ -74,7 +74,7 @@ const RegisterCustom = () => { + "&scope=" + encodeURIComponent("eidapi_auth eidapi_profiles") + "&lang=" + (locale === 'en' ? "en-US" : locale === 'zh-HK' ? "zh-HK" : "zh-CN") //+"&state=" - + "&brokerPage=false" + + "&brokerPage=true" window.location.assign(url); } }); diff --git a/src/pages/authentication/auth-forms/AuthLoginCustom.js b/src/pages/authentication/auth-forms/AuthLoginCustom.js index 8de1605..44f48cc 100644 --- a/src/pages/authentication/auth-forms/AuthLoginCustom.js +++ b/src/pages/authentication/auth-forms/AuthLoginCustom.js @@ -222,7 +222,7 @@ const AuthLoginCustom = () => { + "&scope=" + encodeURIComponent("eidapi_auth eidapi_profiles") + "&lang=" + (locale === 'en' ? "en-US" : locale === 'zh-HK' ? "zh-HK" : "zh-CN") //+"&state=" - + "&brokerPage=false" + + "&brokerPage=true" window.location = url; } }); @@ -260,7 +260,7 @@ const AuthLoginCustom = () => { + "&scope=" + encodeURIComponent("eidapi_auth eidapi_profiles") + "&lang=" + (locale === 'en' ? "en-US" : locale === 'zh-HK' ? "zh-HK" : "zh-CN") //+"&state=" - + "&brokerPage=false" + + "&brokerPage=true" window.location = url; } });