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

[UI] Dashboard allows inviting users with invalid email formats #2152

Open
arindam-sahoo opened this issue Jan 29, 2025 · 0 comments
Open

[UI] Dashboard allows inviting users with invalid email formats #2152

arindam-sahoo opened this issue Jan 29, 2025 · 0 comments

Comments

@arindam-sahoo
Copy link
Collaborator

While inviting users to the dashboard, the system accepts email addresses that do not conform to proper email formatting standards. This could lead to an inconsistent user experience while retrieving the user.

Steps to Reproduce:

  1. Navigate to the Settings > Users section on the dashboard.
  2. Click on Invite users.
  3. Invite an user with an invalid email address (e.g., #$gdyhasd@juspay.in) and select a role.
  4. Click the Send Invite button.
    Note: This does not give any error.
  5. Once the user is created, click on the user to see the user details

Expected Behavior:
The system should validate the email address format and not allow invitations with invalid email formats. A clear error message should be displayed to the user.

Actual Behavior:

Screen.Recording.2025-01-29.at.7.35.32.AM.mov

Attachments
POST /api/user/user/invite_multiple?auth_id= response

[{"email":"#$gdyhasd@juspay.in","is_email_sent":true}]

POST /api/user/user response

{
    "error": {
        "error_type": "invalid_request",
        "message": "Json deserialize error: Failed to parse email at line 1 column 12",
        "code": "IR_06"
    }
}
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

No branches or pull requests

1 participant