Add Google auth 2fa check at login
This commit is contained in:
parent
5cf8c1bde8
commit
69508f9a0e
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit e49388cde01da54b768c0de29b6a6a3f03c4bd34
|
||||
Subproject commit 55cd854027d7a107f4386d23aec175021e0cad68
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user