Пример #1
0
def logout(request):
    """
    Handles logging out the user
    """
    djangologout(request)
    print('LOGOUT')
    return HttpResponseRedirect('/')
Пример #2
0
def logout(request):
	"""
	POST. Logs out into system.
	"""
	djangologout(request)
	response = HttpResponseRedirect('/')
	return response
Пример #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')
Пример #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
Пример #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
Пример #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
Пример #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
Пример #8
0
def logout(request):
    djangologout(request)
    return redirect("/")
Пример #9
0
def logout(request):
    djangologout(request)
Пример #10
0
def logout(request):
    if request.method == 'POST':
        djangologout(request)
    return redirect('index')
Пример #11
0
def logout(request):
    djangologout(request)
    return render_to_response("adm.html", {"pending_list": Pending, "title": "Administration", "action": "logout"})
Пример #12
0
def logout(request):
    djangologout(request)
    return HttpResponse()
Пример #13
0
def logout(request):
    djangologout(request)
    return redirect("/")
Пример #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')
Пример #15
0
def logout(request):
    return djangologout(request)
Пример #16
0
def logout(request):
    djangologout(request)
    return {"is_ok": True}
Пример #17
0
def logout(request):
    djangologout(request)
    return HttpResponseRedirect('/accounts/login/')
Пример #18
0
 def post(self, request):
     djangologout(request)
     return Response(status=204)
Пример #19
0
def logout(request):
    '''登出'''
    djangologout(request)
    return redirect('/directsale/login')
Пример #20
0
def logout(request):
	"""
	POST. Logs out into system.
	"""
	djangologout(request)
	return HttpResponseRedirect('/')
Пример #21
0
def logout(request):
    djangologout(request)
    request.session['counter'] = 0
    return render(request, "mouse_cat/logout.html")
Пример #22
0
def logout (request):
    djangologout(request)
    return HttpResponseRedirect('/login/')