Authenticate problem

2016-06-17 Thread Briel
Hi I'm trying to use authenticate like the documentation shown at djangoproject, and when I try this authenticate returns None, although the user is registered, and the password is right: from django.contrib.auth import authenticate

Re: Authenticate problem

2016-06-17 Thread Vijay Khemlani
usu.password shouldn't be "secret" (as in plain text "secret") it should be hashed. Try doing usu.set_password('secret') usu.save() # Not sure if it is necessary or set_password saves by itself then user = authenticate(username='john', password='secret') On Sat, Jun 18, 2016 at 6:33 AM, Briel

authenticate problem with multiple db ?

2010-06-23 Thread Keats
Hi, when authenticate is called i get this error http://dpaste.com/210674/ though the user exist in database... is authenticate known to not work with multiple database context ? my register function was working fine before that... i've tried with @transaction.autocommit in place of @transaction.c

Re: authenticate problem with multiple db ?

2010-06-23 Thread Russell Keith-Magee
On Thu, Jun 24, 2010 at 1:25 AM, Keats wrote: > Hi, > when authenticate is called i get this error http://dpaste.com/210674/ > though the user exist in database... is authenticate known to not work > with multiple database context ? I'm not aware of any problems. The authenticate code doesn't do