fixed double-definition of hashPassword method that was causing new registrations to fail

This commit is contained in:
Julian Lam
2015-10-28 09:32:27 -04:00
parent defceb6271
commit 7580cfb235

View File

@@ -140,14 +140,6 @@ var async = require('async'),
return isOnline ? (status || 'online') : 'offline';
};
User.hashPassword = function(password, callback) {
if (!password) {
return callback(null, password);
}
Password.hash(nconf.get('bcrypt_rounds') || 12, password, callback);
};
User.exists = function(uid, callback) {
db.isSortedSetMember('users:joindate', uid, callback);
};