How can I change the login and registration fields in django allauth, for example, instead of using the username and password to log in, I wanted to enter the email and password, or registration and password. Or even in the registration, put other fields that I can’t do this, from what I understand, authentication is a module in the source code of django all auth.
This is the code
{% element form form=form method="post" action=login_url tags="entrance,login" %}
{% slot body %}
{% csrf_token %}
{% element fields form=form unlabeled=True %}
{% endelement %}
{% if redirect_field_value %}
<input type="hidden"
name="{{ redirect_field_name }}"
value="{{ redirect_field_value }}" />
{% endif %}
{% endslot %}
{% slot actions %}
{% element button type="submit" tags="prominent,login" %}
{% trans "Sign In" %}
{% endelement %}
{% endslot %}
{% endelement %}
But i can’t change it as it is. Somebody can help me?