mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
removed unused checkPassword socket call
This commit is contained in:
@@ -109,13 +109,6 @@ module.exports = function (SocketUser) {
|
|||||||
], callback);
|
], 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) {
|
SocketUser.changePassword = function (socket, data, callback) {
|
||||||
if (!socket.uid) {
|
if (!socket.uid) {
|
||||||
return callback(new Error('[[error:invalid-uid]]'));
|
return callback(new Error('[[error:invalid-uid]]'));
|
||||||
|
|||||||
Reference in New Issue
Block a user