fb4f478e by Jonille Arreglo

27190_loggedin

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