1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-24 22:14:39 +02:00
Mailu/core/admin/mailu/sso/views/languages.py
2021-12-19 20:48:29 +01:00

9 lines
226 B
Python

from mailu.sso import sso
import flask
@sso.route('/language/<language>', methods=['POST'])
def set_language(language=None):
if language:
flask.session['language'] = language
return flask.Response(status=200)