temporary email change for WPD to mitigate a whoopsie i did

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-31 18:56:56 +02:00
parent 04e47017c1
commit 1a5a69c93c
1 changed files with 9 additions and 6 deletions

View File

@ -45,12 +45,15 @@ app.config['MAIL_SERVER'] = 'smtp.gmail.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True
if environ.get("MAIL_USERNAME2") and random.random() < 0.5:
app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME2", "").strip()
app.config['MAIL_PASSWORD'] = environ.get("MAIL_PASSWORD2", "").strip()
else:
app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME", "").strip()
app.config['MAIL_PASSWORD'] = environ.get("MAIL_PASSWORD", "").strip()
# if environ.get("MAIL_USERNAME2") and random.random() < 0.5:
# app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME2", "").strip()
# app.config['MAIL_PASSWORD'] = environ.get("MAIL_PASSWORD2", "").strip()
# else:
# app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME", "").strip()
# app.config['MAIL_PASSWORD'] = environ.get("MAIL_PASSWORD", "").strip()
app.config['MAIL_USERNAME'] = environ.get("MAIL_USERNAME", "").strip()
app.config['MAIL_PASSWORD'] = environ.get("MAIL_PASSWORD", "").strip()
app.config['SETTINGS'] = {}