auth.models.AbstractBaseUser.set_unusable_password()

set_unusable_password()

Marks the user as having no password set. This isn’t the same as having a blank string for a password. check_password() for this user will never return True. Doesn’t save the AbstractBaseUser object.

You may need this if authentication for your application takes place against an existing external source such as an LDAP directory.

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

Please login to continue.