def do_logout(sender, user, request, **kwargs): if 'access_token' in request.session: try: delete_old_tokens(user) except BaseException: tb = traceback.format_exc() logger.debug(tb) remove_session_token(request.session) request.session.modified = True
def do_logout(sender, user, request, **kwargs): if 'access_token' in request.session: try: delete_old_tokens(user) except Exception: tb = traceback.format_exc() logger.debug(tb) remove_session_token(request.session) request.session.modified = True
def do_logout(sender, user, request, **kwargs): """ Take action on user logout. Cleanup user access_token and send logout request to GeoServer """ if 'access_token' in request.session: try: delete_old_tokens(user) except Exception: tb = traceback.format_exc() logger.debug(tb) remove_session_token(request.session) request.session.modified = True