0a1d5e49 by Jonille Arreglo

Merge branch '27190_loggedin' into '1DEVT'

27190_loggedin

See merge request !55
2 parents 8d826f85 fb4f478e
......@@ -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!