mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +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"])
|
@user.route('/logout', methods=["GET"])
|
||||||
def logout():
|
def logout():
|
||||||
redir = session.get("redirect", None)
|
redir = session.get("redirect", None)
|
||||||
|
if not redir:
|
||||||
|
redir = request.args.get("redirect", None)
|
||||||
session.clear()
|
session.clear()
|
||||||
if redir:
|
if redir:
|
||||||
session['redirect'] = redir
|
session['redirect'] = redir
|
||||||
|
@ -684,6 +684,10 @@ p.mentioned span.chatmessage {
|
|||||||
width: 302px;
|
width: 302px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#logout_btn {
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
/* CSS Variables */
|
/* CSS Variables */
|
||||||
:root {
|
:root {
|
||||||
/*--<var>: <value>*/
|
/*--<var>: <value>*/
|
||||||
|
@ -161,6 +161,9 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user