Merge branch 'ratelimits' of https://github.com/nextgens/Mailu into ratelimits

This commit is contained in:
Florent Daigniere
2021-10-16 09:55:15 +02:00
3 changed files with 22 additions and 9 deletions

View File

@@ -94,6 +94,7 @@ def handle_authentication(headers):
try:
user_email = raw_user_email.encode("iso8859-1").decode("utf8")
password = raw_password.encode("iso8859-1").decode("utf8")
ip = urllib.parse.unquote(headers["Client-Ip"])
except:
app.logger.warn(f'Received undecodable user/password from nginx: {raw_user_email!r}/{raw_password!r}')
else: