The Admin account must not be created by username/password combination but via the following process:
- get the admin email address from the private settings file
- check if at least one user exists by this email and return if true
- otherwise create a random password and create a user with this email and username
- send enrolment email via
Accounts.sendEnrollmentEmail
- use the
Accounts.onEnrollmentLink callback to
5.1. call Accounts.resetPassword
5.2. call Accounts.verifyEmail
The Admin account must not be created by username/password combination but via the following process:
Accounts.sendEnrollmentEmailAccounts.onEnrollmentLinkcallback to5.1. call
Accounts.resetPassword5.2. call
Accounts.verifyEmail