Skip to content

Commit

Permalink
Add logout link to error page so user is not stuck there with zero ch…
Browse files Browse the repository at this point in the history
…oices if determine_workflow keeps sending them there (even when they try to go "Home").
  • Loading branch information
AmandaBirmingham committed May 5, 2020
1 parent cd60598 commit 3292bb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion microsetta_private_api/example/client_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,9 @@ def generate_error_page(error_msg):

output = render_template('error.jinja2',
mailto_url=mailto_url,
error_msg=error_msg)
error_msg=error_msg,
endpoint=SERVER_CONFIG["endpoint"],
authrocket_url=SERVER_CONFIG["authrocket_url"])

return output

Expand Down
4 changes: 3 additions & 1 deletion microsetta_private_api/templates/error.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<li class="breadcrumb-item"><a href="/home">Home</a></li>
</ol>
</nav>
<div>
<a href="{{authrocket_url}}/logout?redirect_uri={{endpoint}}/logout">Log Out</a>
</div>
<div class="container">
<p>
An error seemed to have occurred (see below). It is most likely our fault.
Expand All @@ -38,7 +41,6 @@
<pre>{{ error_msg }}</pre>
</div>
</div>

<div>
<br />
<p>
Expand Down

0 comments on commit 3292bb4

Please sign in to comment.