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

Commit 746d856

Browse files
committed
Fix compatibility with new ngx-oauth proxy
1 parent a1e587a commit 746d856

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/pre-deploy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ mv new/fittable.css new/fittable-$md5css.css
1919
sed -i "s|fittable.js|fittable-$md5js.js|" new/index.html
2020
sed -i "s|fittable.css|fittable-$md5css.css|" new/*.html
2121
sed -i "s|fittable.css|new/fittable-$md5css.css|" index.html
22-
sed -i 's|"_oauth/login"|"/_oauth/login"|' new/landing.html
22+
sed -i 's|"_oauth/login"|"/_oauth/login?original_uri=/new/"|' new/landing.html
2323
sed -i 's|</head>| <script>window.OAUTH_PROXY_PATH = "/../_oauth";</script>\n </head>|g' new/index.html

src/callbacks/sirius.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function fetchUserCallback (cb) {
332332
function logoutUserCallback (cb) {
333333
ajaxPost(`${oauthAPIUrl}/logout`, (request) => {
334334
if (request.readyState === XMLHttpRequest.DONE) {
335-
if (request.status === 204) {
335+
if (request.status < 400) {
336336
cb(null)
337337
} else {
338338
cb(generateError(request.status, 'Logout failed'))

0 commit comments

Comments
 (0)