Respect user.enabled status in internal authentication

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

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

Loading…
Cancel
Save