Respect user.enabled status in internal authentication

master
Stefan Auditor 7 years ago
parent 733b89bff5
commit 6fc22e5432

@ -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