diff options
| author | Tim Graham <timograham@gmail.com> | 2015-03-28 07:49:03 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-03-28 07:51:40 -0400 |
| commit | be865fe62e4d177743e3500effc0907b98c357a1 (patch) | |
| tree | a8b785fb3524691b5e48cee627006b4e64f4dba6 | |
| parent | bd542cbff6800f1f8551395e02720d849f39b06e (diff) | |
[1.7.x] Fixed syntax highlighting in docs/topics/auth/default.txt
Backport of 3e132406e3a95b3fe54e75129013e10bf3e9e86a from master
| -rw-r--r-- | docs/topics/auth/default.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 66a6870391..0dcca0f717 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -313,8 +313,10 @@ You can tell them apart with if request.user.is_authenticated(): # Do something for authenticated users. + ... else: # Do something for anonymous users. + ... .. _how-to-log-a-user-in: @@ -351,8 +353,10 @@ If you have an authenticated user you want to attach to the current session # Redirect to a success page. else: # Return a 'disabled account' error message + ... else: # Return an 'invalid login' error message. + ... .. admonition:: Calling ``authenticate()`` first |
