Fix the language switcher

main
Florent Daigniere 2 years ago
parent 3fc0a0e7fa
commit 45b01db9de

@ -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

Loading…
Cancel
Save