> 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 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 - http://satchmo.python-hosting.com/file/trunk/satchmo/shop/views/account.py -Chris --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---