mirror of
https://github.com/cytodev/LightDMMock.git
synced 2024-11-24 23:19:49 +01:00
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;
|
||||
|
||||
for(var i = 0; i <= this.users.length; i++) {
|
||||
if(this.users.name === username)
|
||||
for(var i = 0; i <= this.users.length -1; i++) {
|
||||
if(this.users[i].name === username)
|
||||
exists = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user