Skip to content

Commit 4614e7c

Browse files
author
Sashko Stubailo
committed
Fix accounts.emailTemplates docs
1 parent 5325b1c commit 4614e7c

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

docs/client/data.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ DocsData = {
162162
"scope": "static",
163163
"summary": "Create a new user."
164164
},
165+
"Accounts.emailTemplates": {
166+
"filepath": "accounts-password/email_templates.js",
167+
"kind": "member",
168+
"lineno": 20,
169+
"locus": "Server",
170+
"longname": "Accounts.emailTemplates",
171+
"memberof": "Accounts",
172+
"name": "emailTemplates",
173+
"scope": "static",
174+
"summary": "Options to customize emails sent from the Accounts system."
175+
},
165176
"Accounts.findUserByEmail": {
166177
"filepath": "accounts-password/password_server.js",
167178
"kind": "function",
@@ -8109,18 +8120,6 @@ DocsData = {
81098120
"scope": "global",
81108121
"summary": "Returns the extension that matched the compiler plugin.\nThe longest prefix is preferred."
81118122
},
8112-
"greet": {
8113-
"filepath": "accounts-password/email_templates.js",
8114-
"kind": "function",
8115-
"lineno": 6,
8116-
"locus": "Server",
8117-
"longname": "greet",
8118-
"name": "greet",
8119-
"options": [],
8120-
"params": [],
8121-
"scope": "global",
8122-
"summary": "Options to customize emails sent from the Accounts system."
8123-
},
81248123
"loggingIn": {
81258124
"filepath": "accounts-base/accounts_client.js",
81268125
"ishelper": "true",

docs/client/names.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"Accounts.addEmail",
55
"Accounts.changePassword",
66
"Accounts.createUser",
7+
"Accounts.emailTemplates",
78
"Accounts.findUserByEmail",
89
"Accounts.findUserByUsername",
910
"Accounts.forgotPassword",
@@ -283,6 +284,5 @@
283284
"execFileAsync",
284285
"execFileSync",
285286
"getExtension",
286-
"greet",
287287
"loggingIn"
288288
]

packages/accounts-password/email_templates.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* @summary Options to customize emails sent from the Accounts system.
3-
* @locus Server
4-
*/
5-
61
function greet(welcomeMsg) {
72
return function(user, url) {
83
var greeting = (user.profile && user.profile.name) ?
@@ -18,6 +13,10 @@ Thanks.
1813
};
1914
}
2015

16+
/**
17+
* @summary Options to customize emails sent from the Accounts system.
18+
* @locus Server
19+
*/
2120
Accounts.emailTemplates = {
2221
from: "Meteor Accounts <no-reply@meteor.com>",
2322
siteName: Meteor.absoluteUrl().replace(/^https?:\/\//, '').replace(/\/$/, ''),

0 commit comments

Comments
 (0)