示例#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)
示例#2
0
def logout(request):
    authLogLogout(request)
    return webLogout(request, request.user.logout())
示例#3
0
文件: modern.py 项目: dkmstr/openuds
def logout(request):
    authLogLogout(request)
    logoutUrl = request.user.logout()
    if logoutUrl is None:
        logoutUrl = request.session.get('logouturl', None)
    return webLogout(request, logoutUrl)
示例#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)
示例#5
0
文件: login.py 项目: techkie/openuds
def logout(request):
    authLogLogout(request)
    logoutUrl = request.user.logout()
    if logoutUrl is None:
        logoutUrl = request.session.get('logouturl', None)
    return webLogout(request, logoutUrl)
示例#6
0
def logout(request):
    authLogLogout(request)
    return webLogout(request, request.user.logout())