Proper errorhandling for registration with invite

This commit is contained in:
Mouse Reeve
2021-01-06 13:13:19 -08:00
parent b046547a6e
commit 67f2b3d808
3 changed files with 15 additions and 8 deletions

View File

@ -3,7 +3,8 @@
<div class="columns">
<div class="column">
<div class="block login">
<div class="block">
{% if valid %}
<h1 class="title">Create an Account</h1>
<div>
<form name="register" method="post" action="/user-register">
@ -11,6 +12,12 @@
{% include 'snippets/register_form.html' %}
</form>
</div>
{% else %}
<div class="content">
<h1 class="title">Permission Denied</h1>
<p>Sorry! This invite code is no longer valid.</p>
</div>
{% endif %}
</div>
</div>
<div class="column">