Setting an unusable password on an existing user
Hi,
Is there any way to set the password of an existing user to and unusable value like none?
I tried user.set_unusable_password() and subsequently user.save() but this did not work.
Other than using this method is there a way to set the password to None or such like so that the user.has_usable_password() method will return False instead of True?
Many Thanks,
nav
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yqNmZJR5mJgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home