Blame view
imports/startup/server/accounts/verifyEmail.js
592 Bytes
ff976df49
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
import _ from 'lodash'; import { Accounts } from 'meteor/accounts-base'; Accounts.config({ sendVerificationEmail: true }); Accounts.emailTemplates.verifyEmail = { subject() { return '[Blok8] Verify Your Email Address'; }, 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. ` ); }, }; |