Blame view

server/email/templates/reset-password.coffee 929 Bytes
2cfb4bd0e   Ryan Glover   Add password reco...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  ###
    Reset Password Email Template
    Override Meteor defaults when sending a reset password email.
  ###
  
  # Set name and from email.
  Accounts.emailTemplates.resetPassword.siteName = "Application Name"
  Accounts.emailTemplates.resetPassword.from     = "Application Admin Email <admin@application.com>"
  
  # Set a subject for the reset password email.
  Accounts.emailTemplates.resetPassword.subject = (user) ->
    "[Application Name] Reset Your Password"
  
  # Set the body of the reset password email.
  Accounts.emailTemplates.resetPassword.text = (user, url) ->
    email      = user.emails[0].address
    removeHash = url.replace('#/', '')
    "A password reset has been requested for the account related to this address(#{email}). To reset the password, visit the following link:
  
   #{removeHash}
  
   If you did not request this reset, please ignore this email. If you feel something is wrong, please contact support: admin@application.com."