3
0
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:
Roel Walraven 2016-08-04 16:57:15 +02:00
parent 249777f9f7
commit 8eb53aff09

View File

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