mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-03 19:47:52 +00:00
Initialize user_email in all cases
This commit is contained in:
@@ -89,6 +89,7 @@ def handle_authentication(headers):
|
|||||||
# we need to manually decode.
|
# we need to manually decode.
|
||||||
raw_user_email = urllib.parse.unquote(headers["Auth-User"])
|
raw_user_email = urllib.parse.unquote(headers["Auth-User"])
|
||||||
raw_password = urllib.parse.unquote(headers["Auth-Pass"])
|
raw_password = urllib.parse.unquote(headers["Auth-Pass"])
|
||||||
|
user_email = 'invalid'
|
||||||
try:
|
try:
|
||||||
user_email = raw_user_email.encode("iso8859-1").decode("utf8")
|
user_email = raw_user_email.encode("iso8859-1").decode("utf8")
|
||||||
password = raw_password.encode("iso8859-1").decode("utf8")
|
password = raw_password.encode("iso8859-1").decode("utf8")
|
||||||
|
|||||||
Reference in New Issue
Block a user