5ae7a722 by Jonille Arreglo

27190_loggedin

1 parent 5cb67ea8
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
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) {
33 //window.location.href = '%REACT_APP_AUTH_FAILED_REDIRECTION_URL%'; 33 window.location.href = '%REACT_APP_AUTH_FAILED_REDIRECTION_URL%';
34 } else { 34 } else {
35 let objBody = { aiwp_logged_in: aiUser }; 35 let objBody = { aiwp_logged_in: aiUser };
36 36
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
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_AUTH_FAILED_REDIRECTION_URL%'; 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!