Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap Admin account by Email #10

Open
jankapunkt opened this issue Mar 25, 2020 · 0 comments
Open

Bootstrap Admin account by Email #10

jankapunkt opened this issue Mar 25, 2020 · 0 comments

Comments

@jankapunkt
Copy link
Member

jankapunkt commented Mar 25, 2020

The Admin account must not be created by username/password combination but via the following process:

  1. get the admin email address from the private settings file
  2. check if at least one user exists by this email and return if true
  3. otherwise create a random password and create a user with this email and username
  4. send enrolment email via Accounts.sendEnrollmentEmail
  5. use the Accounts.onEnrollmentLink callback to
    5.1. call Accounts.resetPassword
    5.2. call Accounts.verifyEmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant