3
0
mirror of https://github.com/cytodev/LightDMMock.git synced 2024-11-24 23:19:49 +01:00

Replace name with username

See issue #3
This commit is contained in:
Roel Walraven 2017-02-24 14:20:33 +01:00
parent 186fe137e1
commit b083dafb7f

View File

@ -174,7 +174,7 @@ LightDMMock.prototype.authenticate = function(username) {
var exists = false; var exists = false;
for(var i = 0; i <= this.users.length -1; i++) { for(var i = 0; i <= this.users.length -1; i++) {
if(this.users[i].name === username) if(this.users[i].username === username)
exists = true; exists = true;
} }