added a better way to show if username or email is taken

This commit is contained in:
ralphi3
2026-06-23 11:17:51 +12:00
parent f548957f6e
commit 7a6bf4d113
2 changed files with 44 additions and 13 deletions
+19 -1
View File
@@ -12,12 +12,30 @@
<input type="password" id="password" name="password" required><br><br>
<button type="submit" class="submitbutton" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px;">Create account</button>
{% if success_message %}
{% if success_message %}
<p style="color: green; margin-top: 15px; font-weight: bold;">
{{ success_message }}
</p>
{% endif %}
{% if user_taken %}
<p style="color: rgb(128, 0, 0); margin-top: 15px; font-weight: bold;">
{{ user_taken }}
</p>
{% endif %}
{% if email_taken %}
<p style="color: rgb(128, 0, 0); margin-top: 15px; font-weight: bold;">
{{ email_taken }}
</p>
{% endif %}
{% if error %}
<p style="color: rgb(128, 0, 0); margin-top: 15px; font-weight: bold;">
{{ error }}
</p>
{% endif %}
</form>