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
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
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
> 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
4 matches
Mail list logo