Fixes for bot logins
This commit is contained in:
parent
05b40b8091
commit
33f775051d
2 changed files with 5 additions and 4 deletions
|
|
@ -134,7 +134,7 @@ module.exports = {
|
|||
callback(err, null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (accts.length >= Config.get("max-accounts-per-ip")) {
|
||||
delete registrationLock[lname];
|
||||
callback("You have registered too many accounts from this "+
|
||||
|
|
@ -207,7 +207,7 @@ module.exports = {
|
|||
the hashes match.
|
||||
*/
|
||||
|
||||
db.query("SELECT name,password,global_rank FROM `users` WHERE name=?",
|
||||
db.query("SELECT name,password,global_rank,time FROM `users` WHERE name=?",
|
||||
[name],
|
||||
function (err, rows) {
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue