Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
fb4f478e
authored
2023-04-12 09:50:57 +0800
by
Jonille Arreglo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
27190_loggedin
1 parent
b089c0f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
client/public/index.html
client/public/index.html
View file @
fb4f478
...
...
@@ -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"
);
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment