Blame view

server/accounts/email-templates.js 781 Bytes
5cb01249d   Ryan Glover   clean up and addi...
1
2
  let appName       = 'Application Name',
      appEmail      = `${ appName } <support@application.com>`,
c39994410   Ryan Glover   wip converting to...
3
      emailTemplates = Accounts.emailTemplates;
5cb01249d   Ryan Glover   clean up and addi...
4
5
  emailTemplates.siteName = appName;
  emailTemplates.from     = appEmail;
c39994410   Ryan Glover   wip converting to...
6
7
8
  
  emailTemplates.resetPassword = {
    subject() {
5cb01249d   Ryan Glover   clean up and addi...
9
      return `[${ appName }] Reset Your Password`;
c39994410   Ryan Glover   wip converting to...
10
11
    },
    text( user, url ) {
db5aba845   Ryan Glover   miscellaneous wor...
12
      let emailAddress   = user.emails[ 0 ].address,
5cb01249d   Ryan Glover   clean up and addi...
13
          urlWithoutHash = url.replace( '#/', '' );
c39994410   Ryan Glover   wip converting to...
14

5cb01249d   Ryan Glover   clean up and addi...
15
16
17
18
19
      return `A password reset has been requested for the account related to this address (${ emailAddress }). To reset the password, visit the following link:
  
  ${ urlWithoutHash }
  
   If you did not request this reset, please ignore this email. If you feel something is wrong, please contact our support team: ${ appEmail }.`;
c39994410   Ryan Glover   wip converting to...
20
21
    }
  };