Beispiel #1
0
def logout_permalink(request):
    logout(request)
    return unset_auth_cookies(HttpResponseRedirect(reverse('index')))
Beispiel #2
0
def remove_user(request):
    request.user.is_active = False
    request.user.save()
    cache.bust_on_handle(request.user, request.user.username)
    logout(request)
    return unset_auth_cookies(HttpResponseRedirect('/'))
Beispiel #3
0
def logout_permalink(request):
    logout(request)
    return unset_auth_cookies(HttpResponseRedirect(reverse('index')))
Beispiel #4
0
def remove_user(request):
    request.user.is_active = False
    request.user.save()
    cache.bust_on_handle(request.user, request.user.username)
    logout(request)
    return unset_auth_cookies(HttpResponseRedirect('/'))
Beispiel #5
0
def remove_user(request):
    request.user.is_active = False
    request.user.save()
    cache.bust_on_handle(request.user, request.user.username)
    logout(request)
    return unset_auth_cookies(json_response({'result': 1}))
Beispiel #6
0
def remove_user(request):
    request.user.is_active = False
    request.user.save()
    cache.bust_on_handle(request.user, request.user.username)
    logout(request)
    return unset_auth_cookies(json_response({'result':1}))