Ticket #15944: topics_auth_crossreferencecheckpassword.diff

File topics_auth_crossreferencecheckpassword.diff, 1.0 KB (added by Andy Terra, 14 years ago)
  • docs/topics/auth.txt

     
    185185        the user. (This takes care of the password hashing in making the
    186186        comparison.)
    187187
     188        See also :func:`~django.contrib.auth.models.check_password()`
     189
    188190    .. method:: models.User.set_unusable_password()
    189191
    190192        Marks the user as having no password set.  This isn't the same as
     
    617619    ``password`` field in the database to check against, and returns ``True``
    618620    if they match, ``False`` otherwise.
    619621
     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
    620628How to log a user out
    621629---------------------
    622630
Back to Top