mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
replaced default admin email to admin@example.com
This commit is contained in:
parent
06a39f45f4
commit
74280d40c1
9 changed files with 9 additions and 9 deletions
|
@ -14,7 +14,7 @@ ENV DEBUG="False" \
|
||||||
ALLOW_PUBLIC_PROJECT_CREATION="True" \
|
ALLOW_PUBLIC_PROJECT_CREATION="True" \
|
||||||
BABEL_DEFAULT_TIMEZONE="UTC" \
|
BABEL_DEFAULT_TIMEZONE="UTC" \
|
||||||
GREENLET_TEST_CPP="no" \
|
GREENLET_TEST_CPP="no" \
|
||||||
MAIL_DEFAULT_SENDER="('Budget manager', 'admin@email.com')" \
|
MAIL_DEFAULT_SENDER="('Budget manager', 'admin@example.com')" \
|
||||||
MAIL_PASSWORD="" \
|
MAIL_PASSWORD="" \
|
||||||
MAIL_PORT="25" \
|
MAIL_PORT="25" \
|
||||||
MAIL_SERVER="localhost" \
|
MAIL_SERVER="localhost" \
|
||||||
|
|
|
@ -13,7 +13,7 @@ services:
|
||||||
- ALLOW_PUBLIC_PROJECT_CREATION=True
|
- ALLOW_PUBLIC_PROJECT_CREATION=True
|
||||||
- BABEL_DEFAULT_TIMEZONE=UTC
|
- BABEL_DEFAULT_TIMEZONE=UTC
|
||||||
- GREENLET_TEST_CPP=no
|
- GREENLET_TEST_CPP=no
|
||||||
- MAIL_DEFAULT_SENDER=('Budget manager', 'admin@email.com')
|
- MAIL_DEFAULT_SENDER=('Budget manager', 'admin@example.com')
|
||||||
- MAIL_PASSWORD=
|
- MAIL_PASSWORD=
|
||||||
- MAIL_PORT=25
|
- MAIL_PORT=25
|
||||||
- MAIL_SERVER=localhost
|
- MAIL_SERVER=localhost
|
||||||
|
|
|
@ -79,7 +79,7 @@ for details.
|
||||||
A python tuple describing the name and email address to use when sending
|
A python tuple describing the name and email address to use when sending
|
||||||
emails.
|
emails.
|
||||||
|
|
||||||
- **Default value:** `("Budget manager", "admin@email.com")`
|
- **Default value:** `("Budget manager", "admin@example.com")`
|
||||||
- **Production value:** Any tuple you want.
|
- **Production value:** Any tuple you want.
|
||||||
|
|
||||||
## SHOW_ADMIN_EMAIL
|
## SHOW_ADMIN_EMAIL
|
||||||
|
|
|
@ -19,7 +19,7 @@ SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
SECRET_KEY = "{{ secret_key }}"
|
SECRET_KEY = "{{ secret_key }}"
|
||||||
|
|
||||||
# A python tuple describing the name and email adress of the sender of the mails.
|
# A python tuple describing the name and email adress of the sender of the mails.
|
||||||
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@email.com") # CUSTOMIZE
|
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@example.com") # CUSTOMIZE
|
||||||
|
|
||||||
# A boolean that determines whether the admin email (MAIL_DEFAULT_SENDER) is
|
# A boolean that determines whether the admin email (MAIL_DEFAULT_SENDER) is
|
||||||
# shown in error messages.
|
# shown in error messages.
|
||||||
|
|
|
@ -3,7 +3,7 @@ DEBUG = SQLACHEMY_ECHO = False
|
||||||
SQLALCHEMY_DATABASE_URI = "sqlite:////tmp/ihatemoney.db"
|
SQLALCHEMY_DATABASE_URI = "sqlite:////tmp/ihatemoney.db"
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
SECRET_KEY = "tralala"
|
SECRET_KEY = "tralala"
|
||||||
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@email.com")
|
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@example.com")
|
||||||
SHOW_ADMIN_EMAIL = True
|
SHOW_ADMIN_EMAIL = True
|
||||||
ACTIVATE_DEMO_PROJECT = True
|
ACTIVATE_DEMO_PROJECT = True
|
||||||
ADMIN_PASSWORD = ""
|
ADMIN_PASSWORD = ""
|
||||||
|
|
|
@ -6,4 +6,4 @@ SQLACHEMY_ECHO = DEBUG
|
||||||
|
|
||||||
SECRET_KEY = "supersecret"
|
SECRET_KEY = "supersecret"
|
||||||
|
|
||||||
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@email.com")
|
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@example.com")
|
||||||
|
|
|
@ -6,4 +6,4 @@ SQLACHEMY_ECHO = DEBUG
|
||||||
|
|
||||||
SECRET_KEY = "lalatra"
|
SECRET_KEY = "lalatra"
|
||||||
|
|
||||||
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@email.com")
|
MAIL_DEFAULT_SENDER = ("Budget manager", "admin@example.com")
|
||||||
|
|
|
@ -26,7 +26,7 @@ class ConfigurationTestCase(BaseTestCase):
|
||||||
self.assertFalse(self.app.config["SQLALCHEMY_TRACK_MODIFICATIONS"])
|
self.assertFalse(self.app.config["SQLALCHEMY_TRACK_MODIFICATIONS"])
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.app.config["MAIL_DEFAULT_SENDER"],
|
self.app.config["MAIL_DEFAULT_SENDER"],
|
||||||
("Budget manager", "admin@email.com"),
|
("Budget manager", "admin@example.com"),
|
||||||
)
|
)
|
||||||
self.assertTrue(self.app.config["ACTIVATE_DEMO_PROJECT"])
|
self.assertTrue(self.app.config["ACTIVATE_DEMO_PROJECT"])
|
||||||
self.assertTrue(self.app.config["ALLOW_PUBLIC_PROJECT_CREATION"])
|
self.assertTrue(self.app.config["ALLOW_PUBLIC_PROJECT_CREATION"])
|
||||||
|
|
|
@ -56,7 +56,7 @@ def flash_email_error(error_message, category="danger"):
|
||||||
error_extension = "."
|
error_extension = "."
|
||||||
if (
|
if (
|
||||||
admin_email
|
admin_email
|
||||||
and admin_email[1] != "admin@email.com"
|
and admin_email[1] != "admin@example.com"
|
||||||
and current_app.config.get("SHOW_ADMIN_EMAIL")
|
and current_app.config.get("SHOW_ADMIN_EMAIL")
|
||||||
):
|
):
|
||||||
error_extension = " or contact the administrator at {}.".format(admin_email[1])
|
error_extension = " or contact the administrator at {}.".format(admin_email[1])
|
||||||
|
|
Loading…
Reference in a new issue