Skip to content

Commit 8540eb5

Browse files
committed
Support email verification sending for accounts-password. Fixes Differential#75. Fixes Differential#190.
1 parent c0ce985 commit 8540eb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/entry.coffee

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ Meteor.startup ->
1919
check user, Object
2020
profile = AccountsEntry.settings.defaultProfile || {}
2121
if user.username
22-
Accounts.createUser
22+
userId = Accounts.createUser
2323
username: user.username,
2424
email: user.email,
2525
password: user.password,
2626
profile: _.extend(profile, user.profile)
2727
else
28-
Accounts.createUser
28+
userId = Accounts.createUser
2929
email: user.email
3030
password: user.password
3131
profile: _.extend(profile, user.profile)
32+
if (user.email && Accounts._options.sendVerificationEmail)
33+
Accounts.sendVerificationEmail(userId, user.email)

0 commit comments

Comments
 (0)