I am working on the final stage of my shifts app. I studied several tutorials on changing Username to email as login name. But they all mention that I should have done this at the start of the development. Is there a way to change this now I have set up quite a few things in my app?
If you are using django-allauth package I think you can by changing (a setting variable of allauth) in settings.py file
## Next lines allauth package configurations very important
AUTHENTICATION_BACKENDS = [
#* Needed to login by username in Django admin, regardless of allauth
# 'django.contrib.auth.backends.ModelBackend',
#* allauth specific authentication methods, such as login by e-mail
'allauth.account.auth_backends.AuthenticationBackend',
]
And other configurations on django-allauth package documentation
1 Like