Registration & first user creation
azuline opened this issue · comments
acid angel from asia commented
Add registration for the first user and an invite system for additional users.
PRs
Finished
- #211 - Add backend API routes for register and hasFirstUser.
- #213 - Add
/register
page for the first admin. Redirect frontend login page to/register
whenhasFirstUser
API route returns false. - #215 - Add backend table for invites. Write a small library wrapper with helper functions around the invites table.
- #220 - Add GraphQL resolvers for invite mutations and invalidations.
- #221 - Add an invites page to the frontend for authorized users to invite users.
- #224 Increase scope of the
/api/register
backend route to allow for invitations via an invite code. - #225 - Add support for sending an invite code on the frontend's
/register
page. Expose a/register
page even ifhasFirstUser
is true.
Notes
At the moment, all users are authorized to send invites. In the future, when a permissions feature is merged in, invites will be restricted to admin users.