force mail_port to be int

resolves #62
This commit is contained in:
aronwk-aaron 2023-02-14 13:39:44 -06:00
parent e726f59114
commit 5d1b79334a

View File

@ -251,9 +251,11 @@ def register_settings(app):
'MAIL_SERVER',
app.config['MAIL_SERVER']
)
app.config['MAIL_PORT'] = os.getenv(
app.config['MAIL_PORT'] = int(
os.getenv(
'MAIL_USE_SSL',
app.config['MAIL_PORT']
)
)
app.config['MAIL_USE_SSL'] = os.getenv(
'MAIL_USE_SSL',