Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions imports/plugins/core/accounts/server/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ Meteor.startup(() => {
emailIsVerified = true;
}

// Set the first email to be the default
if (user.emails[0]) {
user.emails[0].provides = "default";
}

// create a tokenObj and send a welcome email to new users,
// but skip the first default admin user and anonymous users
// (default admins already get a verification email)
Expand Down