1
0
mirror of https://github.com/fazo96/homework.git synced 2025-01-10 12:14:22 +01:00

use meteor.absoluteurl instead of hardcoded string

This commit is contained in:
fazo96 2014-10-04 09:14:28 +02:00
parent 79c2f57937
commit fc48662b9b
2 changed files with 5 additions and 2 deletions

View File

@ -20,7 +20,9 @@ If you want to send emails (necessary to confirm users) you need to set the
stdout. The process is
[explained on the Meteor docs](http://docs.meteor.com/#email).
You can also change mail settings in `server/accounts.coffee`.
In the mails sent by Homework, the website links point to the `ROOT_URL`
environment variable as
[explained on the Meteor docs](http://docs.meteor.com/#meteor_absoluteurl).
### License
The MIT License (MIT)

View File

@ -21,5 +21,6 @@ Accounts.validateNewUser (user) ->
Accounts.emailTemplates.siteName = "Homework App"
Accounts.emailTemplates.verifyEmail.text = (user,url) ->
urlist = url.split('/'); token = urlist[urlist.length-1]
url = Meteor.absoluteUrl 'verify/'+token
'''Welcome to Homework! To activate your account, click on the \
following link: http://homework.meteor.com/verify/'''+token
following link: '''+url