mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Move handling of logging out in admin, to sso logout page.
This commit is contained in:
parent
615743b331
commit
aab258d284
@ -130,7 +130,7 @@
|
||||
{%- endif %}
|
||||
{%- if current_user.is_authenticated %}
|
||||
<li class="nav-item" role="none">
|
||||
<a href="{{ url_for('.logout') }}" class="nav-link" role="menuitem">
|
||||
<a href="{{ url_for('sso.logout') }}" class="nav-link" role="menuitem">
|
||||
<i class="nav-icon fas fa-sign-out-alt"></i>
|
||||
<p>{% trans %}Sign out{% endtrans %}</p>
|
||||
</a>
|
||||
|
@ -11,14 +11,6 @@ import flask_login
|
||||
def index():
|
||||
return flask.redirect(flask.url_for('.user_settings'))
|
||||
|
||||
@ui.route('/logout', methods=['GET'])
|
||||
@access.authenticated
|
||||
def logout():
|
||||
flask_login.logout_user()
|
||||
flask.session.destroy()
|
||||
return flask.redirect(flask.url_for('.index'))
|
||||
|
||||
|
||||
@ui.route('/announcement', methods=['GET', 'POST'])
|
||||
@access.global_admin
|
||||
def announcement():
|
||||
|
Loading…
Reference in New Issue
Block a user