1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-22 03:39:05 +02:00

Fix imap login when no webmail selected

This commit is contained in:
Tim Möhlmann 2018-10-31 17:47:05 +02:00
parent 9004c9b8b5
commit 5fa2aac569
No known key found for this signature in database
GPG Key ID: AFABC30066A39335

@ -3,7 +3,7 @@ from mailu.internal import internal
import flask
import socket
import os
@internal.route("/dovecot/passdb/<user_email>")
def dovecot_passdb_dict(user_email):
@ -13,7 +13,8 @@ def dovecot_passdb_dict(user_email):
app.config.get("POD_ADDRESS_RANGE") or
socket.gethostbyname(app.config["HOST_FRONT"])
)
allow_nets.append(socket.gethostbyname(app.config["HOST_WEBMAIL"]))
if os.environ["WEBMAIL"] != "none":
allow_nets.append(socket.gethostbyname(app.config["HOST_WEBMAIL"]))
print(allow_nets)
return flask.jsonify({
"password": None,