Ticket #15944: topics_auth_crossreferencecheckpassword.diff
File topics_auth_crossreferencecheckpassword.diff, 1.0 KB (added by , 14 years ago) |
---|
-
docs/topics/auth.txt
185 185 the user. (This takes care of the password hashing in making the 186 186 comparison.) 187 187 188 See also :func:`~django.contrib.auth.models.check_password()` 189 188 190 .. method:: models.User.set_unusable_password() 189 191 190 192 Marks the user as having no password set. This isn't the same as … … 617 619 ``password`` field in the database to check against, and returns ``True`` 618 620 if they match, ``False`` otherwise. 619 621 622 You can also authenticate a user by calling :meth:`~django.contrib.auth.models.User.check_password` 623 on a :class:`~django.contrib.auth.models.User` instance and passing a 624 a plain-text password as an argument, which will be checked against 625 the password stored in the database for that user. This is essentially a 626 wrapper for the function described above. 627 620 628 How to log a user out 621 629 --------------------- 622 630