From 7580cfb23554ae0a2cc3ac9496743b45fff7f6b1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 28 Oct 2015 09:32:27 -0400 Subject: [PATCH] fixed double-definition of hashPassword method that was causing new registrations to fail --- src/user.js | 8 -------- 1 file changed, 8 deletions(-) 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); };