meteor-feature-requests icon indicating copy to clipboard operation
meteor-feature-requests copied to clipboard

Unblock Email in Accounts methods

Open paulincai opened this issue 6 years ago • 2 comments

"/packages/accounts-password/password_server.js" Line 735

Would there be any value to unblock these Accounts server method?!

The reason why I am asking for this is because I see in the monitoring tools that Account methods take a very long time compared to everything else.

Accounts.sendResetPasswordEmail = (userId, email, extraTokenData) => {
  const {email: realEmail, user, token} =
    Accounts.generateResetToken(userId, email, 'resetPassword', extraTokenData);
  const url = Accounts.urls.resetPassword(token);
  const options = Accounts.generateOptionsForEmail(realEmail, user, url, 'resetPassword');
  Email.send(options);
  return {email: realEmail, user, token, url, options};
};

Screen Shot 2019-08-27 at 01 34 14 Screen Shot 2019-08-27 at 01 34 32

paulincai avatar Aug 26 '19 21:08 paulincai

Duplicate of #131?

StorytellerCZ avatar May 11 '21 18:05 StorytellerCZ

Yeah this looks like something we should do.

StorytellerCZ avatar May 11 '21 18:05 StorytellerCZ