37 Logout and Treating error cases
{% if error == "fill" %}
<p>Please complete all fields correctly to create an account.</p>
{% endif %}
{% if error == "invalid_email" %}
<p>Invalid email address. Please enter a valid email and try again.</p>
{% endif %}
{% if error == "user_exists" %}
<p>Email already in use. <a href="{% url 'perform_login' %}">Perform login</a></p>
{% endif %}
{% if error == "different_password" %}
<p>Passwords do not match. Please ensure both fields are identical.</p>
{% endif %}
{% if error == "weak_password" %}
<p>Invalid password. Ensure it meets the criteria</p>
{% endif %}

Last updated