mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
29 lines
No EOL
933 B
JavaScript
29 lines
No EOL
933 B
JavaScript
Telescope.email.emails = Object.assign(Telescope.email.emails, {
|
|
|
|
newUser: {
|
|
template: "newUser",
|
|
path: "/email/new-user/:_id?",
|
|
getProperties: Users.getNotificationProperties,
|
|
subject() {
|
|
return "A new user has been created";
|
|
},
|
|
getTestHTML(userId) {
|
|
var user = typeof userId === "undefined" ? Meteor.users.findOne() : Meteor.users.findOne(userId);
|
|
return Telescope.email.getTemplate(this.template)(this.getProperties(user));
|
|
}
|
|
},
|
|
|
|
accountApproved: {
|
|
template: "accountApproved",
|
|
path: "/email/account-approved/:_id?",
|
|
getProperties: Users.getNotificationProperties,
|
|
subject() {
|
|
return "Your account has been approved.";
|
|
},
|
|
getTestHTML(userId) {
|
|
var user = typeof userId === "undefined" ? Meteor.users.findOne() : Meteor.users.findOne(userId);
|
|
return Telescope.email.getTemplate(this.template)(this.getProperties(user));
|
|
}
|
|
}
|
|
|
|
}); |