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

Implement Admin Add Account #124

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

Implement Admin Add Account #124

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

Comments

@srukelman
Copy link
Collaborator

srukelman commented Apr 3, 2025

Description

  • ATM, anyone can create an account and access all the sensitive information of all of CCH and its clients so we want to update the process of how a new account can be created
  • You will be adding a feature that lets admins add new accounts via their settings menu

Steps

  1. Implement the features of the Add Account Button on this page Figma
  2. When Clicked it should take you to a page almost identical to this figma
    1. Just a few small changes since this specific design is for editing the account, but we will repurpose it to creating a new account:
      1. Add a title that says either "Invite New Admin User" or "Invite New Case Manager" <-- the account type that is being added is determined by the tab that is selected on the original page
      2. You can ignore the "About" subtitle
      3. Keep the Email input box, this should then be posted to the backend users table (the only information you have is email and account type so create a new POST route in users.ts that handles this specific POST request that only inserts email and account type (account type is called role in the DB)
      4. when clicked, inviting this user also sends them an invite link via nodemailer
      5. Case managers should be inserted as users and Admins should be inserted as admins3. Now that admins can add new accounts make sure that only added emails can create new cm and admin accounts
    2. be sure to double check that an email added for a cm account cant create an admin account and an email added for an admin account cant create a cm account
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