12d0d14c by Ian Rizh Mañago

update

1 parent 04015176
......@@ -28,32 +28,6 @@
-->
<title>AI-Pro ChatGPT</title>
<script src='%REACT_APP_BTUTIL_AUTH_URL%/ext-app/js/btutil-authenticate-v2.min.js'></script>
<script>
let aiUser = btutil_getCookie('aiwp_logged_in');
if(!aiUser) {
window.location.href = '%REACT_APP_AUTH_FAILED_REDIRECTION_URL%';
} else {
let objBody = { aiwp_logged_in: aiUser };
let params = [];
params['objBody'] = objBody;
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_AUTH_FAILED_REDIRECTION_URL%';
} else {
document.getElementById("root").classList.add("active");
}
}
function cbErrCheckAuthentication(res) {
console.log(res);
}
}
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!