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

500 Internal Server Error When Attempting to Create an Existing Staff Account in a Different Center #287

Open
andrei-manda opened this issue Nov 13, 2024 · 1 comment
Labels
bug 🐛 Something isn't working

Comments

@andrei-manda
Copy link

Description

A 500 Internal Server Error occurs when attempting to create a staff account that already exists in the system to a different center. (based on the email)

@andrei-manda andrei-manda added the bug 🐛 Something isn't working label Nov 13, 2024
@teodoranegru
Copy link

Exected behaviour:

Suppose the NGO Admin adds a new user to a center but that user already exists (an account is already created with that email address) in another center. In that case, the account should be created following the steps below:

  1. NGO Admin adds the user in the Staff section
  2. The system checks if there are any other accounts associated with that email address in the db (all centers from all institutions)
    If YES:
  3. The system:
    3.1. Adds the account in that center's users list
    3.2. Sends an invitation email to the email address (see design here)
  4. The user receives the invitation email and clicks on the "Acceptă invitația" button
  5. The system retrieves the Log in screen
  6. The user enters their account credentials
  7. The system retrieves the interface of the center to which the user has just been added to
    Note: The user will be able to see all centers they are part of and navigate between them using the tenant switcher, similar to how the NGO Admin navigates between the institution's centers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants