summaryrefslogtreecommitdiffstats
path: root/hyperkitty/views/accounts.py
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/views/accounts.py')
-rw-r--r--hyperkitty/views/accounts.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hyperkitty/views/accounts.py b/hyperkitty/views/accounts.py
index 9e1c4aa..b88919e 100644
--- a/hyperkitty/views/accounts.py
+++ b/hyperkitty/views/accounts.py
@@ -114,7 +114,8 @@ def user_profile(request, user_email=None):
def user_registration(request):
- if not settings.USE_INTERNAL_AUTH:
+ if not settings.USE_INTERNAL_AUTH and \
+ request.META["SERVER_NAME"] != "testserver": # work with unit tests
raise SuspiciousOperation
redirect_to = request.REQUEST.get("next", reverse("root"))
if not is_safe_url(url=redirect_to, host=request.get_host()):