From 1a5a69c93c24333abdcdc058cf89440e99611b2a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 31 Aug 2022 18:56:56 +0200 Subject: [PATCH] temporary email change for WPD to mitigate a whoopsie i did --- files/__main__.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 9b3832f92..0a8ae3088 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -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'] = {}