Ticket #4669: authentication.patch
File authentication.patch, 670 bytes (added by , 17 years ago) |
---|
-
authentication.txt
325 325 326 326 If you'd like to manually authenticate a user by comparing a 327 327 plain-text password to the hashed password in the database, use the 328 convenience function ` django.contrib.auth.models.check_password`. It328 convenience function ``django.contrib.auth.models.check_password``. It 329 329 takes two arguments: the plain-text password to check, and the full 330 330 value of a user's ``password`` field in the database to check against, 331 331 and returns ``True`` if they match, ``False`` otherwise.