Closed erenfn closed 5 days 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.
@erenfn can you please elaborate more on https://github.com/bluewave-labs/bluewave-onboarding/pull/343#discussion_r1836881236
[ ] 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.