user.js changes

This commit is contained in:
Baris Soner Usakli
2014-01-16 15:46:37 -05:00
parent 42d6880ac4
commit adf4a5c407
3 changed files with 45 additions and 44 deletions

View File

@@ -932,7 +932,7 @@ var bcrypt = require('bcrypt'),
});
});
},
exists: function(socket, email, callback) {
exists: function(email, callback) {
User.getUidByEmail(email, function(err, exists) {
callback(!!exists);
});