In my registration, a user can create an account with no password if they wish. I would like the password field in a login form to be optional.
I am currently using the built in view django.contrib.auth.views.login for logins. The form validation in this requires a password to be submitted.
Is it possible to customize/override the built in form to allow passwords to be submitted optionally, if so how? Obviously it will still validate a login where both a username and password is provided and the user has set a password at registration.
Thanks