What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-21 08:34:13
django authenticate with email
from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend class EmailBackend(ModelBackend): def authenticate(self, request, username=None, password=None, **kwargs): UserModel = get_user_model() ... Add solution
Best helpers
Ranking is empty