diff --git a/bookwyrm/templates/confirm_email/resend_modal.html b/bookwyrm/templates/confirm_email/resend_modal.html index beb9318a9..4d155cbb6 100644 --- a/bookwyrm/templates/confirm_email/resend_modal.html +++ b/bookwyrm/templates/confirm_email/resend_modal.html @@ -19,16 +19,8 @@ name="email" class="input" id="email" - aria-described-by="id_email_errors" required > - {% if error %} -
-

- {% trans "No user matching this email address found." %} -

-
- {% endif %} {% endblock %} diff --git a/bookwyrm/views/landing/register.py b/bookwyrm/views/landing/register.py index e8de5f809..c5fd17424 100644 --- a/bookwyrm/views/landing/register.py +++ b/bookwyrm/views/landing/register.py @@ -134,19 +134,19 @@ class ConfirmEmail(View): class ResendConfirmEmail(View): """you probably didn't get the email because celery is slow but you can try this""" - def get(self, request, error=False): + def get(self, request): """resend link landing page""" - return TemplateResponse(request, "confirm_email/resend.html", {"error": error}) + return TemplateResponse(request, "confirm_email/resend.html") def post(self, request): """resend confirmation link""" email = request.POST.get("email") try: user = models.User.objects.get(email=email) + emailing.email_confirmation_email(user) except models.User.DoesNotExist: - return self.get(request, error=True) + pass - emailing.email_confirmation_email(user) return TemplateResponse( request, "confirm_email/confirm_email.html", {"valid": True} )