mirror of
https://github.com/cytodev/LightDMMock.git
synced 2024-11-24 23:19:49 +01:00
parent
186fe137e1
commit
b083dafb7f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user