Skip to content

Commit

Permalink
[FIX] Reset password email (#12898)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Dec 10, 2018
1 parent dbff6ee commit 5e9f8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/methods/sendForgotPasswordEmail.js
Expand Up @@ -45,7 +45,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',
Expand Down

0 comments on commit 5e9f8d8

Please sign in to comment.