Our front-end has the UI for creating a new account, however the sign-up button doesn't do anything. The backend also supports authentication right now, but the two have not been connected yet.
TODO
[x] On the "Sign Up" page when the "Sign Up" button is clicked, create a new user with the information contained in the sign-up form (i.e. "Username" and "Password").
Notes
The endpoint you want to hit when creating a new user is register_user at "/login/users/register". The generated client in the frontend (found in frontend/src/_generated/api/services/LoginService.ts) has a function called registerUser; this function will make the API call necessary.
Context
Our front-end has the UI for creating a new account, however the sign-up button doesn't do anything. The backend also supports authentication right now, but the two have not been connected yet.
TODO
Notes
The endpoint you want to hit when creating a new user is
register_user
at "/login/users/register". The generated client in the frontend (found infrontend/src/_generated/api/services/LoginService.ts
) has a function calledregisterUser
; this function will make the API call necessary.