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

Respect user.enabled status in internal authentication

This commit is contained in:
Stefan Auditor 2018-04-15 13:43:30 +02:00
parent d2c6cecca6
commit 92f4858323

View File

@ -51,7 +51,7 @@ def handle_authentication(headers):
status = False
elif protocol == "pop3" and not user.enable_pop:
status = False
if status:
if status and user.enabled:
return {
"Auth-Status": "OK",
"Auth-Server": server,