Skip to content

Commit

Permalink
Merge pull request #306 from maykinmedia/issue-make-default-from-conf…
Browse files Browse the repository at this point in the history
…igurable

Making DEFAULT_FROM_EMAIL configurable per environment
  • Loading branch information
alextreme authored Sep 19, 2022
2 parents 207b0e6 + b742df2 commit dd6126e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/open_inwoner/accounts/tests/test_password_reset_view.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from django.core.cache import cache
from django.test import TestCase
from django.urls import reverse


class PasswordResetViewTests(TestCase):
def test_user_cant_access_the_password_reset_view_more_than_5_times(self):
url = reverse("admin_password_reset")
cache.clear()

for i in range(5):
response = self.client.get(url)
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
EMAIL_USE_TLS = config("EMAIL_USE_TLS", default=False)
EMAIL_TIMEOUT = 10

DEFAULT_FROM_EMAIL = "openinwoner@maykinmedia.nl"
DEFAULT_FROM_EMAIL = config("DEFAULT_FROM_EMAIL", default="openinwoner@maykinmedia.nl")

#
# LOGGING
Expand Down

0 comments on commit dd6126e

Please sign in to comment.