Respect user.enabled status in internal authentication

master
Stefan Auditor 6 years ago
parent d2c6cecca6
commit 92f4858323

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

Loading…
Cancel
Save