From my point of view, you can overwrite the default LoginForm with ACCOUNT_FORMS , but you need to provide a class containing all the methods provided in the source class. There is no login method in your class.
I would set ACCOUNT_FORMS = {'login': 'yourapp.forms.YourLoginForm'} in your settings.py file where YourLoginForm inherited from the source class.
# yourapp/forms.py from allauth.account.forms import LoginForm class YourLoginForm(LoginForm): def __init__(self, *args, **kwargs): super(YourLoginForm, self).__init__(*args, **kwargs) self.fields['password'].widget = forms.PasswordInput()
source share