Check if the account is enabled at login

Not used yet, but possibly will be in the future.
This commit is contained in:
polaris
2014-08-03 22:40:04 -04:00
parent 9e2c77ddff
commit 452ce0ddbd

View File

@@ -192,7 +192,7 @@ class GamespyDatabase(object):
#if r['password'] == md5.hexdigest():
# profileid = r['profileid'] # Valid password
if r['gsbrcd'] == gsbrcd:
if r['enabled'] == 1 and r['gsbrcd'] == gsbrcd:
profileid = r['profileid'] # Valid password
return profileid