Add Google auth 2fa check at login
This commit is contained in:
2
common
2
common
Submodule common updated: e49388cde0...55cd854027
@@ -103,10 +103,15 @@ class tokenList:
|
|||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
# Delete older tokens
|
# Delete older tokens
|
||||||
|
delete = []
|
||||||
for key, value in list(self.tokens.items()):
|
for key, value in list(self.tokens.items()):
|
||||||
if value.userID == userID:
|
if value.userID == userID:
|
||||||
# Delete this token from the dictionary
|
# 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):
|
def multipleEnqueue(self, packet, who, but = False):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user