1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-16 10:59:53 +02:00

s/nginx/front

(cherry picked from commit 5cfec650df)
This commit is contained in:
Florent Daigniere 2024-08-09 15:55:33 +02:00 committed by Mergify
parent f2c0a147fa
commit 79a393d601

View File

@ -98,7 +98,7 @@ def handle_authentication(headers):
password = urllib.parse.unquote(headers["Auth-Pass"])
ip = urllib.parse.unquote(headers["Client-Ip"])
except:
app.logger.warn(f'Received undecodable user/password from nginx: {headers.get("Auth-User", "")!r}')
app.logger.warn(f'Received undecodable user/password from front: {headers.get("Auth-User", "")!r}')
else:
try:
user = models.User.query.get(user_email) if '@' in user_email else None