aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.js')
-rw-r--r--src/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.js b/src/auth.js
index e148fb7..80fa122 100644
--- a/src/auth.js
+++ b/src/auth.js
@@ -96,7 +96,7 @@ function verifyUser(username, password, callback) {
96 result.on('searchEntry', function(entry) { items.push(entry.object); }); 96 result.on('searchEntry', function(entry) { items.push(entry.object); });
97 result.on('error', callback); 97 result.on('error', callback);
98 result.on('end', function (result) { 98 result.on('end', function (result) {
99 if (result.status !== 0 || items.length === 0) return callback(error); 99 if (result.status !== 0 || items.length === 0) return callback('Invalid credentials');
100 100
101 // pick the first found 101 // pick the first found
102 var user = items[0]; 102 var user = items[0];