short passwords are rejected but without an error message

28 views
Skip to first unread message

Doug Smith

unread,
Sep 16, 2018, 1:07:59 PM9/16/18
to django-allauth
While trying some tests I noticed that short passwords are rejected but no error message is given.  For example, "1234" does not work.

Is this the expected behavior?  Should there be an error message?

thanks

Doug Smith

unread,
Sep 16, 2018, 1:24:34 PM9/16/18
to django-allauth

Sorry, my bad. I forgot to put my error messages in my template. In case this helps someone else...

            {% if form.errors %}
               
{% for field in form %}
                   
{% for error in field.errors %}
                       
<div class="alert alert-danger">
                           
<strong>{{ error|escape }}</strong>
                       
</div>
                   
{% endfor %}
               
{% endfor %}
           
{% endif %}


Reply all
Reply to author
Forward
0 new messages