mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Add logout button to user panel
This commit is contained in:
parent
a1ac184bc2
commit
ef4ab4e83c
@ -55,6 +55,8 @@ def callback():
|
||||
@user.route('/logout', methods=["GET"])
|
||||
def logout():
|
||||
redir = session.get("redirect", None)
|
||||
if not redir:
|
||||
redir = request.args.get("redirect", None)
|
||||
session.clear()
|
||||
if redir:
|
||||
session['redirect'] = redir
|
||||
|
@ -684,6 +684,10 @@ p.mentioned span.chatmessage {
|
||||
width: 302px;
|
||||
}
|
||||
|
||||
#logout_btn {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
/* CSS Variables */
|
||||
:root {
|
||||
/*--<var>: <value>*/
|
||||
|
@ -161,6 +161,9 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<a id="logout_btn" class="waves-effect waves-light btn right" href="{{ url_for('user.logout', redirect=request.url) }}"><i class="material-icons">exit_to_app</i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user