Commit 8dc61bb6 by Johannes Zellner

error is not defined here

1 parent 47ba3ae4
Showing with 1 additions and 1 deletions
......@@ -96,7 +96,7 @@ function verifyUser(username, password, callback) {
result.on('searchEntry', function(entry) { items.push(entry.object); });
result.on('error', callback);
result.on('end', function (result) {
if (result.status !== 0 || items.length === 0) return callback(error);
if (result.status !== 0 || items.length === 0) return callback('Invalid credentials');
// pick the first found
var user = items[0];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!