|
@@ -20,6 +20,7 @@ const RegisterCustom = () => { |
|
|
|
|
|
|
|
|
const [isPopUp, setIsPopUp] = React.useState(false); |
|
|
const [isPopUp, setIsPopUp] = React.useState(false); |
|
|
const intl = useIntl(); |
|
|
const intl = useIntl(); |
|
|
|
|
|
const { locale } = intl; |
|
|
|
|
|
|
|
|
const registerWithIAmSmart = () => { |
|
|
const registerWithIAmSmart = () => { |
|
|
setIsPopUp(true); |
|
|
setIsPopUp(true); |
|
@@ -41,7 +42,7 @@ const RegisterCustom = () => { |
|
|
+"&source=" + getBowserType() |
|
|
+"&source=" + getBowserType() |
|
|
+"&redirectURI="+encodeURIComponent(callbackUrl) |
|
|
+"&redirectURI="+encodeURIComponent(callbackUrl) |
|
|
+"&scope="+encodeURIComponent("eidapi_auth eidapi_profiles") |
|
|
+"&scope="+encodeURIComponent("eidapi_auth eidapi_profiles") |
|
|
+"&lang=zh-HK"//en-US, zh-HK, or zh-CN |
|
|
|
|
|
|
|
|
+"&lang="+(locale === 'en' ?"en-US":locale === 'zh-HK' ?"zh-HK":"zh-CN") |
|
|
//+"&state=" |
|
|
//+"&state=" |
|
|
+"&brokerPage=false" |
|
|
+"&brokerPage=false" |
|
|
window.location.assign(url); |
|
|
window.location.assign(url); |
|
@@ -55,7 +56,7 @@ const RegisterCustom = () => { |
|
|
+"&source=" + getBowserType() |
|
|
+"&source=" + getBowserType() |
|
|
+"&redirectURI="+encodeURIComponent(callbackUrl) |
|
|
+"&redirectURI="+encodeURIComponent(callbackUrl) |
|
|
+"&scope="+encodeURIComponent("eidapi_auth eidapi_profiles") |
|
|
+"&scope="+encodeURIComponent("eidapi_auth eidapi_profiles") |
|
|
+"&lang=zh-HK"//en-US, zh-HK, or zh-CN |
|
|
|
|
|
|
|
|
+"&lang="+(locale === 'en' ?"en-US":locale === 'zh-HK' ?"zh-HK":"zh-CN") |
|
|
//+"&state=" |
|
|
//+"&state=" |
|
|
+"&brokerPage=true" |
|
|
+"&brokerPage=true" |
|
|
window.location.assign(url); |
|
|
window.location.assign(url); |
|
|