Respect user.enabled status in internal authentication
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user