Add Google auth 2fa check at login

This commit is contained in:
Nyo 2016-11-30 23:33:56 +01:00
parent 5cf8c1bde8
commit 69508f9a0e
2 changed files with 7 additions and 2 deletions

2
common

@ -1 +1 @@
Subproject commit e49388cde01da54b768c0de29b6a6a3f03c4bd34
Subproject commit 55cd854027d7a107f4386d23aec175021e0cad68

View File

@ -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):
"""