Fixed error when user logs in multiple times while thread is processing hashes
This commit is contained in:
@@ -25,9 +25,11 @@ def matches(password,user):
|
||||
def matches_thread(password, user):
|
||||
hashed = get_pass(uid(user))
|
||||
if crypt.verify(password, hashed):
|
||||
if user.getName() in logging_in:
|
||||
del logging_in[user.getName()]
|
||||
msg(user, "&aLogged in successfully!")
|
||||
else:
|
||||
if user.getName() in logging_in:
|
||||
msg(user, "&cInvalid password")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user