diff --git a/authentication/views.py b/authentication/views.py index 349655e..291e29a 100644 --- a/authentication/views.py +++ b/authentication/views.py @@ -103,7 +103,9 @@ def login_view(request): if user is not None: # Check if email is verified (only if email verification is required) if settings.REQUIRE_EMAIL_VERIFICATION and not user.email_verified: - messages.warning(request, 'Please verify your email address before logging in. Check your inbox for the verification link.') + from django.urls import reverse + resend_url = reverse('authentication:resend_verification') + messages.warning(request, f'Please verify your email address before logging in. Check your inbox for the verification link, or resend verification email.') return render(request, 'authentication/login.html') login(request, user) diff --git a/templates/authentication/login.html b/templates/authentication/login.html index 7a0852d..ece36ea 100644 --- a/templates/authentication/login.html +++ b/templates/authentication/login.html @@ -132,7 +132,7 @@ {% if messages %}
{% endif %} @@ -176,7 +176,6 @@