mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Do not block webmail when we have a valid SSO sess
This commit is contained in:
parent
774dfa4da8
commit
325aa5452b
@ -37,7 +37,7 @@ def nginx_authentication():
|
||||
is_valid_user = False
|
||||
username = response.headers.get('Auth-User', None)
|
||||
if response.headers.get("Auth-User-Exists") == "True":
|
||||
if not is_app_token and utils.limiter.should_rate_limit_user(username, client_ip):
|
||||
if not is_from_webmail and not is_app_token and utils.limiter.should_rate_limit_user(username, client_ip):
|
||||
# FIXME could be done before handle_authentication()
|
||||
status, code = nginx.get_status(flask.request.headers['Auth-Protocol'], 'ratelimit')
|
||||
response = flask.Response()
|
||||
|
1
towncrier/newsfragments/3094.bugfix
Normal file
1
towncrier/newsfragments/3094.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Ensure we do not block logins from webmails when there is a valid SSO session
|
Loading…
Reference in New Issue
Block a user