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

automatically login after email confirmation

2006-10-08 Thread SanPy
I've been trying to implement the user registration process from http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration . It's basically a registration process where the user has to be activated by clicking on a link in an email. Everything went fine and it worked. Then I wanted to