From 1065b3d467cfb662f9b392c0886734368d93aba6 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 17 Apr 2017 18:08:02 +0200 Subject: [bug] remove previous auth token - Resolves: #8823 --- src/leap/bitmask/gui/app.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py index 005ddab..78bb43d 100644 --- a/src/leap/bitmask/gui/app.py +++ b/src/leap/bitmask/gui/app.py @@ -48,7 +48,6 @@ else: from PyQt5 import QtWebKit from PyQt5.QtCore import QSize from PyQt5.QtCore import QObject, pyqtSlot - from PyQt5.QtWidgets import QDialog from PyQt5.QtWidgets import QApplication from PyQt5.QtWebKitWidgets import QWebView from PyQt5.QtWebKit import QWebSettings @@ -223,6 +222,13 @@ def start_app(): if STANDALONE and len(sys.argv) > MIN_ARGS: from leap.bitmask.cli import bitmask_cli return bitmask_cli.main() + + prev_auth = os.path.join(get_path_prefix(), 'leap', 'authtoken') + try: + os.remove(prev_auth) + except OSError: + pass + launch_gui() -- cgit v1.2.3