mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Error out explictely if Auth-Port isn't set
This commit is contained in:
parent
abaa2e8cc3
commit
e14d2e7c03
@ -77,7 +77,7 @@ def handle_authentication(headers):
|
||||
# Authenticated user
|
||||
elif method == "plain":
|
||||
is_valid_user = False
|
||||
if 'Auth-Port' in headers and int(urllib.parse.unquote(headers["Auth-Port"])) == 25:
|
||||
if headers["Auth-Port"] == '25':
|
||||
return {
|
||||
"Auth-Status": "AUTH not supported",
|
||||
"Auth-Error-Code": "502 5.5.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user