From b083dafb7f024a64f50ad033ed155a0a9e0beb9c Mon Sep 17 00:00:00 2001 From: Roel Walraven Date: Fri, 24 Feb 2017 14:20:33 +0100 Subject: [PATCH] Replace name with username See issue #3 --- src/LightDMMock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }