From 93937ed38a828e0f252fb25614516593ec7b9ab0 Mon Sep 17 00:00:00 2001 From: Joseph Kocherhans Date: Tue, 16 May 2006 16:27:36 +0000 Subject: [PATCH] multi-auth: Small formatting changes to docs/authentication.txt git-svn-id: http://code.djangoproject.com/svn/django/branches/multi-auth@2919 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/authentication.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/authentication.txt b/docs/authentication.txt index 5419bda973..0d2a7f5e51 100644 --- a/docs/authentication.txt +++ b/docs/authentication.txt @@ -659,13 +659,14 @@ Regardless, ``authenticate`` should check the credentials it gets, and if they are valid, it should return a user object that matches those credentials. The Django admin system is tightly coupled to the Django User object described -at the beginning of this document. For now, the best way to deal with this is to -create a Django User object for each user that exists for your backend (i.e. -in your ldap directory, your external sql database, etc.) You can either +at the beginning of this document. For now, the best way to deal with this is +to create a Django User object for each user that exists for your backend +(i.e. in your ldap directory, your external sql database, etc.) You can either write a script to do this in advance, or your ``authenticate`` method can do -it the first time a user logs in. `django.contrib.auth.backends.SettingsBackend`_ -is an example of the latter approach. Note that you don't have to save a user's -password in the Django User object. Your backend can still check the password -against an external source, and return a Django User object. +it the first time a user logs in. +`django.contrib.auth.backends.SettingsBackend`_ is an example of the latter +approach. Note that you don't have to save a user's password in the Django +User object. Your backend can still check the password against an external +source, and return a Django User object. .. _django.contrib.auth.backends.SettingsBackend: http://code.djangoproject.com/browser/django/branches/magic-removal/django/contrib/auth/backends.py