mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fixed double-definition of hashPassword method that was causing new registrations to fail
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user