mirror of
https://github.com/optim-enterprises-bv/Mailu-OIDC.git
synced 2025-11-01 18:47:47 +00:00
Fix typo
This commit is contained in:
@@ -69,11 +69,10 @@ def login():
|
|||||||
response = redirect(app.config['WEB_ADMIN'])
|
response = redirect(app.config['WEB_ADMIN'])
|
||||||
response.set_cookie('rate_limit', utils.limiter.device_cookie(username), max_age=31536000, path=flask.url_for('sso.login'), secure=app.config['SESSION_COOKIE_SECURE'], httponly=True)
|
response.set_cookie('rate_limit', utils.limiter.device_cookie(username), max_age=31536000, path=flask.url_for('sso.login'), secure=app.config['SESSION_COOKIE_SECURE'], httponly=True)
|
||||||
flask.current_app.logger.info(f'Login succeeded for {username} from {client_ip}.')
|
flask.current_app.logger.info(f'Login succeeded for {username} from {client_ip}.')
|
||||||
|
return response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
flask.flash(str(e), 'error')
|
flask.flash(str(e), 'error')
|
||||||
|
|
||||||
return response
|
|
||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
if destination := _has_usable_redirect():
|
if destination := _has_usable_redirect():
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user