aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-21 15:16:16 -0500
committerBobby <[email protected]>2022-11-21 15:16:16 -0500
commitd0032061cfdbf6d99588febb0c9d26c9510410d6 (patch)
treefdaffb1cc7a805ed8c31f05dd1ca2b133df4dfd0
parent74d94c15a983df523a09a45d6c83759de1b0a534 (diff)
downloadthatcomputerscientist-d0032061cfdbf6d99588febb0c9d26c9510410d6.tar.xz
thatcomputerscientist-d0032061cfdbf6d99588febb0c9d26c9510410d6.zip
fix send verification email
-rw-r--r--templates/blog/partials/sidebar.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/blog/partials/sidebar.html b/templates/blog/partials/sidebar.html
index ce70b782..cc6c11d2 100644
--- a/templates/blog/partials/sidebar.html
+++ b/templates/blog/partials/sidebar.html
@@ -30,10 +30,10 @@
</form>
{% for message in messages %}
{% if 'loginError' in message.tags %}
- {% if message.message == "EVERR" %}
+ {% if message.message == "EVERR" and request.GET.username %}
<form method="post" action="{% url 'users:sendverificationemail' %}" >
<p class="{{message.tags}}">
- Your email is unverified. Please check your inbox for a verification email or to request a new verification email by clicking{% csrf_token %}<input type="hidden" name="username"><input style="display: inline; background: none; border: none; color: blue; text-decoration: underline; cursor: pointer; margin: 0;" type="submit" value="here.">
+ Your email is unverified. Please check your inbox for a verification email or to request a new verification email by clicking{% csrf_token %}<input type="hidden" name="username" value="{{ request.GET.username }}"><input style="display: inline; background: none; border: none; color: blue; text-decoration: underline; cursor: pointer; margin: 0;" type="submit" value="here.">
</p>
</form>
{% else %}