Open erenfn opened 1 week ago
Hi @erenfn,
I would like to work on this issue. Please assign it to me.
Sure! I assigned it to you.
Hi @erenfn,
Regarding the routing to /login
or /register
, to fetch if any team exists, the user must be authenticated and this routing is before a user is registered or logged in. How should I handle this ? Is it feasible to make the /count
endpoint unguarded ?
Yes, you can remove the authentication for /count endpoint
Hi @erenfn, Please review #343 for this issue.
[ ] Modify CreateAccountPage.jsx to include necessary fields for admin registration (this will only happen once).
[ ] Set the register page as the initial page when there are no users.
When the server is first launched and no users exist (you can use getTeamCount service to check this), the first person (admin) who opens the application should see the admin registration page, as shown below:
Currently, users are redirected to the login page, which should not happen for the first registering user.
Our registration page currently looks like this:
It should be modified for this scenario, one time only.