Просмотр исходного кода

iAM Smart set brokerPage=true

CR003
Anna Ho 1 год назад
Родитель
Сommit
6880ed72ba
2 измененных файлов: 4 добавлений и 4 удалений
  1. +2
    -2
      src/pages/authentication/RegisterCustom.js
  2. +2
    -2
      src/pages/authentication/auth-forms/AuthLoginCustom.js

+ 2
- 2
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);
}
});


+ 2
- 2
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;
}
});


Загрузка…
Отмена
Сохранить