added a better way to show if username or email is taken
This commit is contained in:
+19
-1
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user