Skip to content

Commit

Permalink
fix: Tell frontend if auth failed
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 14, 2023
1 parent 497202f commit 970809d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/core/routes/ng/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generateResponse(doReload: bool = True) -> Response:
<body>
<script>
if (window.opener) {"{"}
window.opener.postMessage({"{ message: 'authSuccess' }"}, "*")
window.opener.postMessage({"{ message: 'authSuccess' }" if (doReload) else "{ message: 'authFailed' }"}, "*")
window.opener.focus()
window.close()
{"} else {"}
Expand Down

0 comments on commit 970809d

Please sign in to comment.