Replace variable by app.config for mail_server enable

This commit is contained in:
kitoy 2025-12-22 12:14:08 +01:00
parent e3100e77b2
commit 193fc29c82

View File

@ -51,7 +51,7 @@ def valid_username(username):
return valid return valid
def set_mail_domain(): def set_mail_domain():
if MAIL_SERVER: if app.config['MAIL_SERVER']:
hostname = app.config['MAIL_DOMAIN'] hostname = app.config['MAIL_DOMAIN']
else: else:
hostname = None hostname = None