auth.backends.ModelBackend.authenticate()

authenticate(username=None, password=None, **kwargs)

Tries to authenticate username with password by calling User.check_password. If no username is provided, it tries to fetch a username from kwargs using the key CustomUser.USERNAME_FIELD. Returns an authenticated user or None.

doc_Django
2016-10-09 18:34:05
Comments
Leave a Comment

Please login to continue.