Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Client Login #123

Open
6 of 8 tasks
srukelman opened this issue Apr 3, 2025 · 0 comments · May be fixed by #133
Open
6 of 8 tasks

Setup Client Login #123

srukelman opened this issue Apr 3, 2025 · 0 comments · May be fixed by #133
Assignees

Comments

@srukelman
Copy link
Collaborator

srukelman commented Apr 3, 2025

Description

  • CCH needs a client login to display each form
  • this will be a singular account with a managed login (only admins can change the password)

Steps

  1. you will need to update the user table to add a new user type to the user type enum called "client"
    • you will also need to update user type enums in the frontend to reflect this change as well
  2. for all client forms pages, make these protected routes that only the client user type can access (see other routes in app.tsx if confused on how to do this)
  3. since we do not want clients to be able to create accounts the client account type will have a singular instance that is managed completely by the admins on this page
    1. i have already created a singular client login (email: [email protected] password: password)
    2. now you need to implement the flows for the admin to edit this account
  4. Also this client needs to be able to login see the login flow here
    1. since this account is being managed by the admin do not add the client to create account

Acceptance Criteria

  • frontend types reflect new user type: client
  • only client-type users can access forms
  • client-type accounts cannot access any other pages
  • admins have new tab on their settings page to edit the client login info
  • admins can then update the client login email and password
  • new option is added to account logins that lets clients log into their accounts
  • clients can now follow full login flow to access
  • clients are then redirected to /client-landing-page route (this is just a placeholder for now so don't worry when it doesn't have anything on it 🤣
@alexy-ok alexy-ok linked a pull request Apr 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants