Example #1
0
def logout(request):
    """
    Handles logging out the user
    """
    djangologout(request)
    print('LOGOUT')
    return HttpResponseRedirect('/')
Example #2
0
def logout(request):
	"""
	POST. Logs out into system.
	"""
	djangologout(request)
	response = HttpResponseRedirect('/')
	return response
Example #3
0
def logout(request):
    """
	POST. Logs out into system.
	"""
    registration_id = request.POST.get('registration_id')
    if registration_id is not None:
        Subscription.objects.filter(registration_id=registration_id).delete()
    djangologout(request)
    return HttpResponse(settings.VALIDATION_IS_OK, content_type='text/plain')
Example #4
0
def logout(req):
    o = {}
    r = render_to_response("web/logout.html", {"o": o})
    user = UR.getUserInfo(req, False)
    if user is not None and user.guest:
        r.set_cookie("pgid", user.id, 1e9)
    r.delete_cookie("userinfo")
    r.delete_cookie("ckey")
    from django.contrib.auth import logout as djangologout
    djangologout(req)
    return r
Example #5
0
def logout(req): 
    o = {}
    r = render_to_response("web/logout.html", {"o": o})
    user = UR.getUserInfo(req, False)
    if user is not None and user.guest: 
        r.set_cookie("pgid", user.id, 1e9)
    r.delete_cookie("userinfo")
    r.delete_cookie("ckey")
    from django.contrib.auth import logout as djangologout
    djangologout(req)
    return r
Example #6
0
def logout(req):
    o = {}
    r = __serve_page(req, 'web/static_page.html', content_type="text/html", allow_guest=True)
    user = UR.getUserInfo(req, False)
    if user is not None and user.guest:
        r.set_cookie("pgid", user.id, 1e9)
    r.delete_cookie("userinfo")
    r.delete_cookie("ckey")
    from django.contrib.auth import logout as djangologout
    djangologout(req)
    return r
Example #7
0
def logout(req):
    o = {}
    r = __serve_page(req,
                     'web/static_page.html',
                     content_type="text/html",
                     allow_guest=True)
    user = UR.getUserInfo(req, False)
    if user is not None and user.guest:
        r.set_cookie("pgid", user.id, 1e9)
    r.delete_cookie("userinfo")
    r.delete_cookie("ckey")
    from django.contrib.auth import logout as djangologout
    djangologout(req)
    return r
Example #8
0
def logout(request):
    djangologout(request)
    return redirect("/")
Example #9
0
def logout(request):
    djangologout(request)
Example #10
0
def logout(request):
    if request.method == 'POST':
        djangologout(request)
    return redirect('index')
Example #11
0
def logout(request):
    djangologout(request)
    return render_to_response("adm.html", {"pending_list": Pending, "title": "Administration", "action": "logout"})
Example #12
0
def logout(request):
    djangologout(request)
    return HttpResponse()
Example #13
0
def logout(request):
    djangologout(request)
    return redirect("/")
Example #14
0
def logout(request):
    """This view manages the logout of a user"""
    djangologout(request)
    messages.success(request, 'Vous êtes déconnecté !')
    return redirect('store:signin')
Example #15
0
def logout(request):
    return djangologout(request)
Example #16
0
def logout(request):
    djangologout(request)
    return {"is_ok": True}
Example #17
0
def logout(request):
    djangologout(request)
    return HttpResponseRedirect('/accounts/login/')
Example #18
0
 def post(self, request):
     djangologout(request)
     return Response(status=204)
Example #19
0
def logout(request):
    '''登出'''
    djangologout(request)
    return redirect('/directsale/login')
Example #20
0
def logout(request):
	"""
	POST. Logs out into system.
	"""
	djangologout(request)
	return HttpResponseRedirect('/')
Example #21
0
def logout(request):
    djangologout(request)
    request.session['counter'] = 0
    return render(request, "mouse_cat/logout.html")
Example #22
0
def logout (request):
    djangologout(request)
    return HttpResponseRedirect('/login/')