Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds https://github.com/scambra/devise_invitable gem and the ability to invite admin users.
Instead of a New User button, it is now an Invite New Admin button:
Clicking this button takes you to a screen to create a new admin invitation:
Filling out the email address and hitting send will send this email address an Email address to invite them to the site. They will get an email that might look like the following:
When the user navigates to this URL in the email, they will be taken to a page to accept this invitation and to set their account password:
After adding a password they will be logged in and redirected to the homepage (might want to change this to Admin CMS root page?). If they navigate to the CMS Admin they will be able to see everything. And their new admin account will be in the Admins index:
Some nice to haves and next steps: