Blame view
imports/server/accounts/verifyEmail.js
596 Bytes
ff976df49
|
1 2 3 4 5 6 7 8 9 |
import _ from 'lodash'; import { Accounts } from 'meteor/accounts-base'; Accounts.config({ sendVerificationEmail: true }); Accounts.emailTemplates.verifyEmail = { subject() { |
b7054c9b2
|
10 |
return '[YoungDesk] Verify Your Email Address'; |
ff976df49
|
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
}, text(user, url) { const theUrl = Meteor.absoluteUrl(`back/verifyEmail/${_.last(url.split('/'))}`); return ( ` Hello, ${user.firstName}! To verify your email address, visit the following link: ${theUrl} If you did not request this verification, please ignore this email. ` ); }, }; |