Skip to content

Commit

Permalink
fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
akkupy committed May 20, 2023
1 parent c698c2a commit 4077b44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Z-Vote/poll/templates/poll/failure.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ <h3 class="alert-heading">{{ fail }}</h3>
</div>
<div class="text-center">
<button onclick="location.href='/'" type="button" class="btn btn-dark btn-lg">Home</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button onclick="location.href='/register'" type="button" class="btn btn-dark btn-lg">Register</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<button onclick="location.href='/login'" type="button" class="btn btn-dark btn-lg">Vote</button><br>
</div>
{% endblock content %}
2 changes: 1 addition & 1 deletion Z-Vote/poll/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def otp(request):
fail = 'Password MisMatch!'
else:
fail = 'OTP is Invalid'
return render(request,'failure.html',{'fail':fail})
return render(request,'poll/failure.html/',{'fail':fail})
return redirect('home')


Expand Down

0 comments on commit 4077b44

Please sign in to comment.