azuline / repertoire

whoops never finished this lol, don't look it's old and embarrassing

Home Page:https://repertoire.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registration & first user creation

azuline opened this issue · comments

Add registration for the first user and an invite system for additional users.

PRs

Finished

  1. #211 - Add backend API routes for register and hasFirstUser.
  2. #213 - Add /register page for the first admin. Redirect frontend login page to /register when hasFirstUser API route returns false.
  3. #215 - Add backend table for invites. Write a small library wrapper with helper functions around the invites table.
  4. #220 - Add GraphQL resolvers for invite mutations and invalidations.
  5. #221 - Add an invites page to the frontend for authorized users to invite users.
  6. #224 Increase scope of the /api/register backend route to allow for invitations via an invite code.
  7. #225 - Add support for sending an invite code on the frontend's /register page. Expose a /register page even if hasFirstUser 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.