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:
parent
3fc0a0e7fa
commit
45b01db9de
@ -1,7 +1,7 @@
|
|||||||
from mailu.sso import sso
|
from mailu.sso import sso
|
||||||
import flask
|
import flask
|
||||||
|
|
||||||
@sso.route('/language/<language>', methods=['POST'])
|
@sso.route('/language/<language>', methods=['GET','POST'])
|
||||||
def set_language(language=None):
|
def set_language(language=None):
|
||||||
if language:
|
if language:
|
||||||
flask.session['language'] = language
|
flask.session['language'] = language
|
||||||
|
Loading…
Reference in New Issue
Block a user