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)
def logout(request): authLogLogout(request) return webLogout(request, request.user.logout())
def logout(request): authLogLogout(request) logoutUrl = request.user.logout() if logoutUrl is None: logoutUrl = request.session.get('logouturl', None) return webLogout(request, logoutUrl)
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)