Hi Django users,
developing my application for storing the employee's expenses, my
database has a model class named employee that has the below columns
(name, password, isAdmin, branch, isActive) The name and the password
should be used for the login and the isAdmin should be used for the
permiss
OK, so your suggestion worked. I used the example code and added my LDAP
code into one authentication module and it worked great. Here is the code I
used in the end. I'll add a code snippet if possible for others to use.
http://www.djangosnippets.org/snippets/142/
Portions of my code were used fr
On Thu, Mar 29, 2007 at 12:42:34PM -, RajeshD wrote:
> The idea with the above snippet is that when you add a user, you would
> enter a valid username as well as an email address. The user can then
> login by entering either the username or the email address in the
> admin login screen. That lo
OK, I think I understand. It's not a replacement for the username it just
allows a user to enter either jimbob or [EMAIL PROTECTED] I think I
got it. Trying it as we speak. Thanks for the help.
--Thom
On 3/29/07, RajeshD <[EMAIL PROTECTED]> wrote:
>
>
> Hi Thom,
>
> On Mar 28, 10:13 pm, "Thom All
Hi Thom,
On Mar 28, 10:13 pm, "Thom Allen" <[EMAIL PROTECTED]> wrote:
> I'll try it with just the one backend, but maybe I haven't explained my
> problem correctly.
This won't fix the problem. Multiple authentication backends are
supported by Django (it just tries them all in succession and stop
I'll try it with just the one backend, but maybe I haven't explained my
problem correctly.
In the Admin application there is a link to Users. When clicking on Users, I
am presented with a list of records from the auth_users table. I click on
Add New User, attempt to put [EMAIL PROTECTED] as the US
Thom wrote:
> OK, so here is some code, because I tried this and still no go;
>
> in my project settings.py I have this code:
>
> AUTHENTICATION_BACKENDS = (
> 'pi.apps.email-auth.EmailBackend',
> 'pi.apps.authenticate.LDAPAuthenticate',
> 'django.contrib.auth.backends.ModelBackend',
> )
>
> I
OK, so here is some code, because I tried this and still no go;
in my project settings.py I have this code:
AUTHENTICATION_BACKENDS = (
'pi.apps.email-auth.EmailBackend',
'pi.apps.authenticate.LDAPAuthenticate',
'django.contrib.auth.backends.ModelBackend',
)
I put the email-auth.py in my APP
On Mar 28, 5:15 pm, "Thom" <[EMAIL PROTECTED]> wrote:
> Thanks for pointing me to the snippets, however, this doesn't seem to
> work in the built in Admin Application. Any other thoughts?
Actually, that should work from the Admin application too. The Admin
app uses the same set of authenticatio
Thanks for pointing me to the snippets, however, this doesn't seem to
work in the built in Admin Application. Any other thoughts?
--Thom
On Mar 28, 2:37 pm, "RajeshD" <[EMAIL PROTECTED]> wrote:
> See this Django Snippet by Chris:
>
> http://www.djangosnippets.org/snippets/74/
--~--~-~-
See this Django Snippet by Chris:
http://www.djangosnippets.org/snippets/74/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
I want to manage users through the default Admin application, but I
need to be able to use an email address as the username. I've searched
the forums to no avail, modified validation code to allow
isAlphaNumericURL, to no avail. Any direction would be appreciated.
Thanks.
--Thom
--~--~-
12 matches
Mail list logo