diff --git a/src/LightDMMock.js b/src/LightDMMock.js index 6c31632..1fff812 100644 --- a/src/LightDMMock.js +++ b/src/LightDMMock.js @@ -174,7 +174,7 @@ LightDMMock.prototype.authenticate = function(username) { var exists = false; for(var i = 0; i <= this.users.length -1; i++) { - if(this.users[i].name === username) + if(this.users[i].username === username) exists = true; }