Rename the authentication endpoint
This commit is contained in:
@@ -6,6 +6,7 @@ import urllib
|
||||
|
||||
SUPPORTED_AUTH_METHODS = ["none", "plain"]
|
||||
|
||||
|
||||
STATUSES = {
|
||||
"authentication": ("Authentication credentials invalid", {
|
||||
"imap": "AUTHENTICATIONFAILED",
|
||||
|
||||
@@ -4,8 +4,10 @@ from mailu.internal import internal, nginx
|
||||
import flask
|
||||
|
||||
|
||||
@internal.route("/nginx")
|
||||
@internal.route("/auth/email")
|
||||
def nginx_authentication():
|
||||
""" Main authentication endpoint for Nginx email server
|
||||
"""
|
||||
headers = nginx.handle_authentication(flask.request.headers)
|
||||
response = flask.Response()
|
||||
for key, value in headers.items():
|
||||
|
||||
Reference in New Issue
Block a user