diff --git a/app/authentification/views.py b/app/authentification/views.py index d0c55d83..3e6ba9ac 100644 --- a/app/authentification/views.py +++ b/app/authentification/views.py @@ -26,7 +26,7 @@ class SignupView(TemplateView): if not bool(settings.ALLOW_SIGNUP): return redirect('signup') - if not hasattr(settings, "EMAIL_BACKEND") or not hasattr(settings, "EMAIL_HOST"): + if not hasattr(settings, "EMAIL_BACKEND") and not hasattr(settings, "EMAIL_HOST"): return render(request, 'email_not_set.html') if form.is_valid():