Rename the authentication endpoint

This commit is contained in:
kaiyou
2017-10-22 16:43:06 +02:00
parent 3c9552a14b
commit ff71e70360
3 changed files with 7 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import urllib
SUPPORTED_AUTH_METHODS = ["none", "plain"]
STATUSES = {
"authentication": ("Authentication credentials invalid", {
"imap": "AUTHENTICATIONFAILED",

View File

@@ -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():