forked from SFS/LightDMMock
Fixes undefined user error
aka fixing sloppy code...
This commit is contained in:
parent
249777f9f7
commit
8eb53aff09
@ -139,8 +139,8 @@ LightDMMock.prototype.authenticate = function(username) {
|
|||||||
|
|
||||||
var exists = false;
|
var exists = false;
|
||||||
|
|
||||||
for(var i = 0; i <= this.users.length; i++) {
|
for(var i = 0; i <= this.users.length -1; i++) {
|
||||||
if(this.users.name === username)
|
if(this.users[i].name === username)
|
||||||
exists = true;
|
exists = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user