Example #1
0
def logout(request: ExtendedHttpRequestWithUser) -> HttpResponse:
    auth.authLogLogout(request)
    request.session['restricted'] = False  # Remove restricted
    logoutUrl = request.user.logout()
    if logoutUrl is None:
        logoutUrl = request.session.get('logouturl', None)
    return auth.webLogout(request, logoutUrl)
Example #2
0
def logout(request):
    authLogLogout(request)
    return webLogout(request, request.user.logout())
Example #3
0
def logout(request):
    authLogLogout(request)
    logoutUrl = request.user.logout()
    if logoutUrl is None:
        logoutUrl = request.session.get('logouturl', None)
    return webLogout(request, logoutUrl)
Example #4
0
def logout(request: HttpRequest) -> HttpResponse:
    auth.authLogLogout(request)
    logoutUrl = request.user.logout()
    if logoutUrl is None:
        logoutUrl = request.session.get('logouturl', None)
    return auth.webLogout(request, logoutUrl)
Example #5
0
def logout(request):
    authLogLogout(request)
    logoutUrl = request.user.logout()
    if logoutUrl is None:
        logoutUrl = request.session.get('logouturl', None)
    return webLogout(request, logoutUrl)
Example #6
0
def logout(request):
    authLogLogout(request)
    return webLogout(request, request.user.logout())