From b0846a040ed292688b6e473768da7710abad53f6 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 28 Mar 2015 07:49:03 -0400 Subject: [PATCH] [1.8.x] Fixed syntax highlighting in docs/topics/auth/default.txt Backport of 3e132406e3a95b3fe54e75129013e10bf3e9e86a from master --- docs/topics/auth/default.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 63dcf83973f..504a69483e2 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -311,8 +311,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: @@ -349,8 +351,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