Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Fix compatibility with new ngx-oauth proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed May 12, 2021
1 parent a1e587a commit 746d856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/pre-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ mv new/fittable.css new/fittable-$md5css.css
sed -i "s|fittable.js|fittable-$md5js.js|" new/index.html
sed -i "s|fittable.css|fittable-$md5css.css|" new/*.html
sed -i "s|fittable.css|new/fittable-$md5css.css|" index.html
sed -i 's|"_oauth/login"|"/_oauth/login"|' new/landing.html
sed -i 's|"_oauth/login"|"/_oauth/login?original_uri=/new/"|' new/landing.html
sed -i 's|</head>| <script>window.OAUTH_PROXY_PATH = "/../_oauth";</script>\n </head>|g' new/index.html
2 changes: 1 addition & 1 deletion src/callbacks/sirius.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function fetchUserCallback (cb) {
function logoutUserCallback (cb) {
ajaxPost(`${oauthAPIUrl}/logout`, (request) => {
if (request.readyState === XMLHttpRequest.DONE) {
if (request.status === 204) {
if (request.status < 400) {
cb(null)
} else {
cb(generateError(request.status, 'Logout failed'))
Expand Down

0 comments on commit 746d856

Please sign in to comment.