Blame view
imports/server/emails/resetPassword.js
717 Bytes
ff976df49
|
1 2 3 4 5 6 |
import _ from 'lodash'; import { Accounts } from 'meteor/accounts-base'; Accounts.emailTemplates.resetPassword = { subject() { |
217abccee
|
7 |
return '[YoungDesk] Reset Your Password'; |
ff976df49
|
8 9 |
}, text(user, url) { |
217abccee
|
10 |
console.log(user); |
ff976df49
|
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
const userEmail = user.emails[0].address; const theUrl = Meteor.absoluteUrl(`?enter=reset&token=${_.last(url.split('/'))}`); // const theUrl = decodeURI(`\u003D`); return ( ` Hello, ${user.firstName}! A password reset has been requested for the account related to this address. To reset the password, visit the following link: ${theUrl} If you did not request this reset, please ignore this email. ` ); }, }; |