Skip to content

Node.js based forum software built for the modern web

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

Julian Lam7580cfb23554
diff --git a/src/user.js b/src/user.js
index 4d6593ab20..f2ba5e233b 100644
--- a/src/user.js
+++ b/src/user.js
@@ -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);
};