Added 'New in Django development version' to changes in docs/authentication.txt from [5771]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fd2b99b5f1
commit
d76e532077
|
@ -114,16 +114,17 @@ custom methods:
|
|||
string is the correct password for the user. (This takes care of the
|
||||
password hashing in making the comparison.)
|
||||
|
||||
* ``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.
|
||||
* ``set_unusable_password()`` -- **New in Django development version.**
|
||||
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.
|
||||
|
||||
* ``has_usable_password()`` -- Returns ``False`` if
|
||||
``set_unusable_password()`` has been called for this user.
|
||||
* ``has_usable_password()`` -- **New in Django development version.**
|
||||
Returns ``False`` if ``set_unusable_password()`` has been called for this
|
||||
user.
|
||||
|
||||
* ``get_group_permissions()`` -- Returns a list of permission strings that
|
||||
the user has, through his/her groups.
|
||||
|
|
Loading…
Reference in New Issue