Fixes logic error in get started user view

This commit is contained in:
Mouse Reeve
2021-05-20 15:17:05 -07:00
parent 69a1f6a618
commit 82f74a4049
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class PasswordResetRequest(View):
"""create a password reset token"""
email = request.POST.get("email")
try:
user = models.User.objects.get(email=email)
user = models.User.objects.get(email=email, email__isnull=False)
except models.User.DoesNotExist:
data = {"error": _("No user with that email address was found.")}
return TemplateResponse(request, "password_reset_request.html", data)