Skip to content

Commit

Permalink
Support email verification sending for accounts-password. Fixes #75. F…
Browse files Browse the repository at this point in the history
…ixes #190.
  • Loading branch information
queso committed Jul 21, 2014
1 parent c0ce985 commit 8540eb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/entry.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ Meteor.startup ->
check user, Object
profile = AccountsEntry.settings.defaultProfile || {}
if user.username
Accounts.createUser
userId = Accounts.createUser
username: user.username,
email: user.email,
password: user.password,
profile: _.extend(profile, user.profile)
else
Accounts.createUser
userId = Accounts.createUser
email: user.email
password: user.password
profile: _.extend(profile, user.profile)
if (user.email && Accounts._options.sendVerificationEmail)
Accounts.sendVerificationEmail(userId, user.email)

0 comments on commit 8540eb5

Please sign in to comment.