Replace variable by app.config for mail_server enable
This commit is contained in:
parent
e3100e77b2
commit
193fc29c82
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user