Blame view

imports/startup/server/accounts/resetPassword.js 692 Bytes
ff976df49   Deepak   added orgs public...
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.emailTemplates.resetPassword = {
    subject() {
      return '[Blok8] Reset Your Password';
    },
    text(user, url) {
      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.
  
  `
      );
    },
  };