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 User
object.
You may need this if authentication for your application takes place against an existing external source such as an LDAP directory.
Please login to continue.