def logout(request): try: djangoLogout(request) request.session.clear() except: return JsonResponse({'state': stateCode.ERROR, 'info': _('logout failed')}) else: return JsonResponse({'state': stateCode.SUCCESS, 'info': _('logout success')})
def logout(request): try: djangoLogout(request) request.session.clear() except: return JsonResponse({ 'state': stateCode.ERROR, 'info': _('logout failed') }) else: return JsonResponse({ 'state': stateCode.SUCCESS, 'info': _('logout success') })
def logout(request): if request.user.is_authenticated(): djangoLogout(request) return redirect("/")
def logout(request): djangoLogout(request) return success()
def logout(request): ''' Backend to perform logout. ''' djangoLogout(request) return redirect('/login')
def logout(request): djangoLogout(request) return HttpResponse('You have successfully signed out.')
def logout(request): djangoLogout(request) return redirect('sirs_users:login')
def logout(request): djangoLogout(request) return HttpResponseRedirect('/')
def logout(request): if request.user.is_authenticated(): djangoLogout(request) return HttpResponseRedirect(reverse('books:index'))
def logout(request): if request.user.is_authenticated: djangoLogout(request) return render(request, 'logout.html') else: return render(request, 'logout.html')
def logout(request): djangoLogout(request) return redirect("/")
def logout(request): djangoLogout(request) if "next" in request.GET: return redirect(request.GET["next"]) else: return redirect("status:root")