From 1366ee3fc7afc3571f21c56cb34964e7f9bbbcfd Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 8 Aug 2024 10:33:19 +0200 Subject: [PATCH] doh (cherry picked from commit d7c6528f045e50b939675fcb6730ab4813aeb6d4) --- core/admin/mailu/internal/views/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/internal/views/auth.py b/core/admin/mailu/internal/views/auth.py index fed10953..d163cb80 100644 --- a/core/admin/mailu/internal/views/auth.py +++ b/core/admin/mailu/internal/views/auth.py @@ -49,7 +49,7 @@ def nginx_authentication(): if not is_port_25: utils.limiter.exempt_ip_from_ratelimits(client_ip) elif is_valid_user: - password = urllib.parse.unquote(headers.get('Auth-Pass'], None)) + password = urllib.parse.unquote(headers.get('Auth-Pass', None)) utils.limiter.rate_limit_user(username, client_ip, password=password) elif not is_from_webmail: utils.limiter.rate_limit_ip(client_ip, username)