[FIX] Reset password email (#12898)

pull/12901/head
Diego Sampaio 7 years ago
parent 70e6faa9e7
commit 90faddfb80
No known key found for this signature in database
GPG Key ID: E060152B30502562
  1. 2
      server/methods/sendForgotPasswordEmail.js

@ -48,7 +48,7 @@ Meteor.methods({
Accounts.emailTemplates.resetPassword.html = function(userModel, url) {
return Mailer.replacekey(html, 'Forgot_Password_Url', url);
};
return Accounts.sendResetPasswordEmail(user._id, email);
return !!Accounts.sendResetPasswordEmail(user._id, email);
} catch (error) {
throw new Meteor.Error('error-email-send-failed', `Error trying to send email: ${ error.message }`, {
method: 'registerUser',

Loading…
Cancel
Save