password field is showing password in plain text
<p>I have used django allauth for user registration and login system. I could show the form by simplifying the lines of code using for loop. I got the right field type(TextInput and PasswordInput) for each field too. However the password field which has PasswordInput shows password in plain text. How can i resolve this?</p>

<p><strong>my signup page(account/signup.html)</strong></p>

<pre><code>&lt;form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}"&gt;
    {% csrf_token %}
     {% for field in form.visible_fields %}
     &lt;div class="form-group"&gt;
        &lt;label for="{{ field.id_for_label}}"&gt;{{field.label}}&lt;/label&gt;
        {{ field.errors.0 }}
        &lt;input type="{{field|input_type}}" name="{{ field.name }}" class="form-control" id="{{ field.id_for_label}}"&gt;
     &lt;/div&gt;
     {% endfor %}
&lt;/form&gt;
</code></pre>

<p><strong>filters.py</strong></p>

<pre><code>from django import template
register = template.Library()

@register.filter('input_type')
def input_type(field):
    print('field',field.field.widget.__class__)
    return field.field.widget.__class__.__name__
</code></pre>

<p>How can i show password in dot? </p>

<p>You can also try this:</p>

<pre><code>&lt;input class="form-control" type="{{ field.field.widget.input_type }}"
                   name="{{ field.name }}"
                   id="id_{{ field.name }}" &gt;
</code></pre>

python django python-3.x django-allauth