|
|
|
|
@ -11,8 +11,9 @@ Meteor.methods({ |
|
|
|
|
email = (user.emails || []).map(item => item.address).find(userEmail => regex.test(userEmail)); |
|
|
|
|
|
|
|
|
|
if (RocketChat.settings.get('Forgot_Password_Customized')) { |
|
|
|
|
const subject = RocketChat.placeholders.replace(RocketChat.settings.get('Forgot_Password_Email_Subject') || ''); |
|
|
|
|
const html = RocketChat.placeholders.replace(RocketChat.settings.get('Forgot_Password_Email') || ''); |
|
|
|
|
const data = { name: user.name, email }; |
|
|
|
|
const subject = RocketChat.placeholders.replace(RocketChat.settings.get('Forgot_Password_Email_Subject') || '', data); |
|
|
|
|
const html = RocketChat.placeholders.replace(RocketChat.settings.get('Forgot_Password_Email') || '', data); |
|
|
|
|
|
|
|
|
|
Accounts.emailTemplates.resetPassword.subject = function(/*userModel*/) { |
|
|
|
|
return subject; |
|
|
|
|
|