summaryrefslogtreecommitdiff
path: root/docs/topics/auth.txt
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-01-29 08:10:29 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-01-29 08:10:29 +0000
commit47acb1d659c0c589b6c6532f8618da0bb757324c (patch)
treecaadf57bb2616781f4f03e810d328bbe4ed2d991 /docs/topics/auth.txt
parent72c39410c80ee842bf3de22418086d102cb2b768 (diff)
Fixed #6273 -- Added a 'changepassword' management command. Thanks to Ludvig Ericson and Justin Lilly for their work on this patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/auth.txt')
-rw-r--r--docs/topics/auth.txt17
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index ab9d268fe1..0e7e264dc0 100644
--- a/docs/topics/auth.txt
+++ b/docs/topics/auth.txt
@@ -25,7 +25,7 @@ The auth system consists of:
.. deprecated:: 1.2
The Messages component of the auth system will be removed in Django 1.4.
-
+
Installation
============
@@ -243,7 +243,7 @@ Methods
.. method:: models.User.has_perms(perm_list, obj=None)
Returns ``True`` if the user has each of the specified permissions,
- where each perm is in the format
+ where each perm is in the format
``"<app label>.<permission codename>"``. If the user is inactive,
this method will always return ``False``.
@@ -351,7 +351,18 @@ Django requires add *and* change permissions as a slight security measure.
Changing passwords
~~~~~~~~~~~~~~~~~~
-Change a password with :meth:`~django.contrib.auth.models.User.set_password()`:
+.. versionadded:: 1.2
+ The ``manage.py change_password`` command was added.
+
+:djadmin:`manage.py change_password <username>` offers a method of
+changing a User's password from the command line. It prompts you to
+change the password of a given user which you must enter twice. If
+they both match, the new password will be changed immediately. If you
+do not supply a user, the command will attempt to change the password
+whose username matches the current user.
+
+You can also change a password programmatically, using
+:meth:`~django.contrib.auth.models.User.set_password()`:
.. code-block:: python