Fix auth bug
Users with channel rank but no global rank were not properly authenticated.
This commit is contained in:
parent
9ede4dbc2d
commit
24f14530a4
|
@ -104,7 +104,7 @@ Channel.prototype.createTables = function() {
|
||||||
|
|
||||||
// Retrieves a user's rank from the database
|
// Retrieves a user's rank from the database
|
||||||
Channel.prototype.getRank = function(name) {
|
Channel.prototype.getRank = function(name) {
|
||||||
if(!this.isRegistered)
|
if(!this.registered)
|
||||||
return Rank.Guest;
|
return Rank.Guest;
|
||||||
var db = mysql.createConnectionSync();
|
var db = mysql.createConnectionSync();
|
||||||
db.connectSync(Config.MYSQL_SERVER, Config.MYSQL_USER,
|
db.connectSync(Config.MYSQL_SERVER, Config.MYSQL_USER,
|
||||||
|
|
Loading…
Reference in a new issue