Skip to content

Commit

Permalink
fix: allowed reset and reset_notify emails to go out to unconfirmed e…
Browse files Browse the repository at this point in the history
…mail addresses
  • Loading branch information
julianlam committed Jul 30, 2021
1 parent ccf004f commit d5b5b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Emailer.send = async (template, uid, params) => {
return;
}

const allowedTpls = ['verify_email', 'welcome', 'registration_accepted'];
const allowedTpls = ['verify-email', 'welcome', 'registration_accepted', 'reset', 'reset_notify'];
if (!meta.config.includeUnverifiedEmails && !userData['email:confirmed'] && !allowedTpls.includes(template)) {
if (process.env.NODE_ENV === 'development') {
winston.warn(`uid : ${uid} (${userData.email}) has not confirmed email, not sending "${template}" email.`);
Expand Down

0 comments on commit d5b5b7d

Please sign in to comment.