diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-09-02 03:40:42 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-09-02 03:40:42 +0000 |
| commit | 64a94691277db17e87614f125d8da78a9995076b (patch) | |
| tree | 8850007d024ada1901a8965c01e7c6f74ebe0172 /docs/topics/auth.txt | |
| parent | c435975cc779a4549591a1c2b32e91f409c33757 (diff) | |
Fixed #8753: converted "new in ..." callouts to proper Sphinx "versionadded/versionchanged" directives. Thanks to Marc Fargas for all the heavy lifting here.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/auth.txt')
| -rw-r--r-- | docs/topics/auth.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index ca73b92ea8..b6e9a9d5dd 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -167,7 +167,8 @@ Methods .. method:: models.User.set_unusable_password() - **New in Django development version.** + .. versionadded:: 1.0 + Marks the user as having no password set. This isn't the same as having a blank string for a password. :meth:`~django.contrib.auth.models.User.check_password()` for this user @@ -179,7 +180,8 @@ Methods .. method:: models.User.has_usable_password() - **New in Django development version.** + .. versionadded:: 1.0 + Returns ``False`` if :meth:`~django.contrib.auth.models.User.set_unusable_password()` has been called for this user. @@ -363,13 +365,14 @@ they're used by Web requests, as explained in the next section. Creating superusers ------------------- +.. versionadded:: 1.0 + The ``manage.py createsuperuser`` command is new. + :djadmin:`manage.py syncdb <syncdb>` prompts you to create a superuser the first time you run it after adding ``'django.contrib.auth'`` to your :setting:`INSTALLED_APPS`. If you need to create a superuser at a later date, you can use a command line utility. -**New in Django development version.**:: - manage.py createsuperuser --username=joe --email=joe@example.com You will be prompted for a password. After you enter one, the user will be @@ -557,8 +560,10 @@ How to log a user out Note that :func:`~django.contrib.auth.logout()` doesn't throw any errors if the user wasn't logged in. - **New in Django development version:** When you call - :func:`~django.contrib.auth.logout()`, the session + .. versionchanged:: 1.0 + Calling ``logout()`` now cleans session data. + + When you call :func:`~django.contrib.auth.logout()`, the session data for the current request is completely cleaned out. All existing data is removed. This is to prevent another person from using the same web browser to log in and have access to the previous user's session data. |
