From ad8ac2bdff4ae4fc3b599c79b16d7ff7917bb65d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 3 Jul 2018 17:44:49 -0400 Subject: [PATCH] removed unused checkPassword socket call --- src/socket.io/user/profile.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/socket.io/user/profile.js b/src/socket.io/user/profile.js index 49e63744c6..5193d41c1d 100644 --- a/src/socket.io/user/profile.js +++ b/src/socket.io/user/profile.js @@ -109,13 +109,6 @@ module.exports = function (SocketUser) { ], callback); } - SocketUser.checkPassword = function (socket, data, callback) { - isPrivilegedOrSelfAndPasswordMatch(socket.uid, data, function (err) { - // Return a bool (without delayed response to prevent brute-force checking of password validity) - setTimeout(callback.bind(null, null, !err), 1000); - }); - }; - SocketUser.changePassword = function (socket, data, callback) { if (!socket.uid) { return callback(new Error('[[error:invalid-uid]]'));