diff --git a/src/open_inwoner/accounts/tests/test_password_reset_view.py b/src/open_inwoner/accounts/tests/test_password_reset_view.py index 88fc5fcabe..d2e91bd5dc 100644 --- a/src/open_inwoner/accounts/tests/test_password_reset_view.py +++ b/src/open_inwoner/accounts/tests/test_password_reset_view.py @@ -1,3 +1,4 @@ +from django.core.cache import cache from django.test import TestCase from django.urls import reverse @@ -5,6 +6,7 @@ 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) diff --git a/src/open_inwoner/conf/base.py b/src/open_inwoner/conf/base.py index f3c0f9af60..594ab93af1 100644 --- a/src/open_inwoner/conf/base.py +++ b/src/open_inwoner/conf/base.py @@ -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