# hard question : where should we redirect requests to logout if user is not logged in ?
def logout_user (request):
- # xxx check that we're indeed logged in
- if not request.user.is_authenticated():
- return HttpResponseRedirect ('/')
- return render_to_response('view-logout.html',{'username':the_user(request)},
- context_instance=RequestContext(request))
-
-def do_logout_user (request):
# xxx check that we're indeed logged in
if not request.user.is_authenticated():
return HttpResponseRedirect ('/')