Skip to content

Commit d93859d

Browse files
Fix #312 style logout page (#313)
* Fix #312 style logout page * Set docker cookie secure flag to false in development * Set docker cookie secure flag to false in development * fix docker sed SESSION_COOKIE_SECURE * fix docker sed SESSION_COOKIE_SECURE * fix remove SESSION_COOKIE_SECURE in docker dev * fix remove SESSION_COOKIE_SECURE in docker dev * default SESSION_COOKIE_SAMESITE to Lax * default SESSION_COOKIE_SAMESITE to Lax * Fix #312 style logout page
1 parent 134564d commit d93859d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

subscribie/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,4 @@ def wrapped_view(**kwargs):
302302
@bp.route("/logout")
303303
def logout():
304304
session.clear()
305-
return "Logged out"
305+
return render_template('admin/logout.html')
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "admin/layout.html" %}
2+
{% block title %} Login {% endblock %}
3+
4+
{% block body %}
5+
6+
<h2 class="text-center text-dark">You have logged out</h2>
7+
8+
<div class="container">
9+
<p><a href="{{ url_for('auth.login') }}">Click here to log back in.</a></p>
10+
</div>
11+
12+
{% endblock body %}

0 commit comments

Comments
 (0)