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