Save a redirect

master
Florent Daigniere 3 years ago
parent d3f07a0882
commit fee13e6c4b

@ -21,7 +21,7 @@ def login():
if form.validate_on_submit(): if form.validate_on_submit():
if str(form.target.data) == 'Admin': if str(form.target.data) == 'Admin':
endpoint = 'ui.index' endpoint = 'ui.user_settings'
elif str(form.target.data) == 'Webmail': elif str(form.target.data) == 'Webmail':
endpoint = 'ui.webmail' endpoint = 'ui.webmail'
@ -41,4 +41,4 @@ def login():
def logout(): def logout():
flask_login.logout_user() flask_login.logout_user()
flask.session.destroy() flask.session.destroy()
return flask.redirect(flask.url_for('.login')) return flask.redirect(flask.url_for('.login'))

Loading…
Cancel
Save