Re: automatically login after email confirmation

2006-10-09 Thread SanPy
Joseph Kocherhans wrote: > > Does anyone know of a way to login a user without having to > > authenticate first? Or authenticating with an encrypted password? > > The problem is probably that the user.backend attribute does not > exist. As a hack, you could just set it. > > user.backend = 'dja

Re: Re: automatically login after email confirmation

2006-10-09 Thread Joseph Kocherhans
On 10/9/06, SanPy <[EMAIL PROTECTED]> wrote: > > Chris Moffitt wrote: > > > > > I've was tripped up by this too. Can you try something like this: > > > > user = authenticate(username=data[*'user_name'*], > > password=data[*'password'*]) > > login(request, user) > > > > This seems to

Re: automatically login after email confirmation

2006-10-09 Thread SanPy
Chris Moffitt wrote: > > > I've was tripped up by this too. Can you try something like this: > > user = authenticate(username=data[*'user_name'*], > password=data[*'password'*]) > login(request, user) > > This seems to work for me. If you want to see the full code, it's here - > htt

Re: automatically login after email confirmation

2006-10-08 Thread Chris Moffitt
> user_account = user_profile.user > user_account.is_active = True > user_account.save() > user = User.objects.get(pk=user_account.id) > if user is not None: > login(request, user) > return render_to_response('login/confirm.html', {'success': True}) > I've was t