This commit is contained in:
Baris Soner Usakli
2014-01-08 22:53:55 -05:00
parent 3a6db04be5
commit dabd2f29af
4 changed files with 86 additions and 69 deletions

View File

@@ -487,9 +487,9 @@ var bcrypt = require('bcrypt'),
User.search = function(username, callback) {
if (!username) {
callback([]);
return;
return callback([]);
}
db.search('user', username, function(err, uids) {
if (err) {
console.log(err);