Skip to content

Commit

Permalink
[FIX] cannot reset password (#12903)
Browse files Browse the repository at this point in the history
* Update debug.js

* Temporary hotfix solution for the resetpassword issue
  • Loading branch information
ggazzo authored and rodrigok committed Dec 12, 2018
1 parent 69ea9ec commit 58078e4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/rocketchat-lib/server/lib/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,17 @@ const wrapMethods = function(name, originalHandler, methodsMap) {
const args = name === 'ufsWrite' ? Array.prototype.slice.call(originalArgs, 1) : originalArgs;
logger.method(name, '-> userId:', Meteor.userId(), ', arguments: ', args);

this.unblock();
// Temporary solution for a hotfix while we investigate the underlying issue.
const methodBlackList = [
'resetPassword',
'verifyEmail',
'resetPasswordWithTOTP',
];

if (methodBlackList.indexOf(name) < 0) {
this.unblock();
}

const result = originalHandler.apply(this, originalArgs);
end();
return result;
Expand Down

0 comments on commit 58078e4

Please sign in to comment.