You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-29 22:37:58 +02:00
s/nginx/front
This commit is contained in:
@@ -98,7 +98,7 @@ def handle_authentication(headers):
|
|||||||
password = urllib.parse.unquote(headers["Auth-Pass"])
|
password = urllib.parse.unquote(headers["Auth-Pass"])
|
||||||
ip = urllib.parse.unquote(headers["Client-Ip"])
|
ip = urllib.parse.unquote(headers["Client-Ip"])
|
||||||
except:
|
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:
|
else:
|
||||||
try:
|
try:
|
||||||
user = models.User.query.get(user_email) if '@' in user_email else None
|
user = models.User.query.get(user_email) if '@' in user_email else None
|
||||||
|
|||||||
Reference in New Issue
Block a user