diff --git a/mock/LightDMMock.js b/mock/LightDMMock.js index fffb0d9..16d927f 100644 --- a/mock/LightDMMock.js +++ b/mock/LightDMMock.js @@ -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; }