diff --git a/core/admin/mailu/ui/templates/sidebar.html b/core/admin/mailu/ui/templates/sidebar.html index 32feb8dd..62168ff1 100644 --- a/core/admin/mailu/ui/templates/sidebar.html +++ b/core/admin/mailu/ui/templates/sidebar.html @@ -130,7 +130,7 @@ {%- endif %} {%- if current_user.is_authenticated %}
{% trans %}Sign out{% endtrans %}
diff --git a/core/admin/mailu/ui/views/base.py b/core/admin/mailu/ui/views/base.py index 8e628360..d05d1fb3 100644 --- a/core/admin/mailu/ui/views/base.py +++ b/core/admin/mailu/ui/views/base.py @@ -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():