Kaydet (Commit) 3e132406 authored tarafından Tim Graham's avatar Tim Graham

Fixed syntax highlighting in docs/topics/auth/default.txt

üst 19e41a97
...@@ -309,8 +309,10 @@ You can tell them apart with ...@@ -309,8 +309,10 @@ You can tell them apart with
if request.user.is_authenticated(): if request.user.is_authenticated():
# Do something for authenticated users. # Do something for authenticated users.
...
else: else:
# Do something for anonymous users. # Do something for anonymous users.
...
.. _how-to-log-a-user-in: .. _how-to-log-a-user-in:
...@@ -347,8 +349,10 @@ If you have an authenticated user you want to attach to the current session ...@@ -347,8 +349,10 @@ If you have an authenticated user you want to attach to the current session
# Redirect to a success page. # Redirect to a success page.
else: else:
# Return a 'disabled account' error message # Return a 'disabled account' error message
...
else: else:
# Return an 'invalid login' error message. # Return an 'invalid login' error message.
...
.. admonition:: Calling ``authenticate()`` first .. admonition:: Calling ``authenticate()`` first
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment