1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Fix the language switcher

This commit is contained in:
Florent Daigniere 2022-11-21 11:01:01 +01:00
parent 3fc0a0e7fa
commit 45b01db9de

View File

@ -1,7 +1,7 @@
from mailu.sso import sso
import flask
@sso.route('/language/<language>', methods=['POST'])
@sso.route('/language/<language>', methods=['GET','POST'])
def set_language(language=None):
if language:
flask.session['language'] = language