From 69508f9a0eba85ea621d371485044ed487367537 Mon Sep 17 00:00:00 2001 From: Nyo Date: Wed, 30 Nov 2016 23:33:56 +0100 Subject: [PATCH] Add Google auth 2fa check at login --- common | 2 +- objects/tokenList.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common b/common index e49388c..55cd854 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit e49388cde01da54b768c0de29b6a6a3f03c4bd34 +Subproject commit 55cd854027d7a107f4386d23aec175021e0cad68 diff --git a/objects/tokenList.py b/objects/tokenList.py index fd23d54..439a3e1 100644 --- a/objects/tokenList.py +++ b/objects/tokenList.py @@ -103,10 +103,15 @@ class tokenList: :return: """ # Delete older tokens + delete = [] for key, value in list(self.tokens.items()): if value.userID == userID: # Delete this token from the dictionary - self.tokens[key].kick("You have logged in from somewhere else. You can't connect to Bancho/IRC from more than one device at the same time.", "kicked, multiple clients") + #self.tokens[key].kick("You have logged in from somewhere else. You can't connect to Bancho/IRC from more than one device at the same time.", "kicked, multiple clients") + delete.append(self.tokens[key]) + + for i in delete: + logoutEvent.handle(i) def multipleEnqueue(self, packet, who, but = False): """