fb4f478e by Jonille Arreglo

27190_loggedin

1 parent b089c0f6
......@@ -26,7 +26,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>AI-Pro ChatGPT</title>
<script src='%REACT_APP_S3_LINK%/common/btutil-authenticate.min.js'></script>
<script src='%REACT_APP_BTCOMPONENT_S3_URL%/common/btutil-authenticate.min.js'></script>
<script>
let aiUser = btutil_getCookie('aiwp_logged_in');
if(!aiUser) {
......@@ -36,13 +36,13 @@
let params = [];
params['objBody'] = objBody;
params['strUrl'] = '%REACT_APP_API_LINK%/e/v1/authenticate/';
params['strUrl'] = '%REACT_APP_EXTERNAL_API_URL%/e/v1/authenticate/';
btutil_checkAuthentication(params, cbCheckAuthentication, cbErrCheckAuthentication);
function cbCheckAuthentication(res) {
// console.log(res);
if (!res.success) {
window.location.href = '%REACT_APP_REDIRECT_ACCOUNT%';
window.location.href = '%REACT_APP_AUTH_FAILED_REDIRECTION_URL%';
} else {
document.getElementById("root").classList.add("active");
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!