vstruhar / lara-collab

LaraCollab is a project management tool build with Laravel and React.
138 stars 37 forks source link

Error 500 When Adding User Email with Non-Existent Domain #26

Closed davidblancolf closed 3 months ago

davidblancolf commented 3 months ago

We are encountering a problem where attempting to add a user with an email address that has a non-existent domain results in a server error (HTTP 500). This issue should be handled more gracefully, with appropriate validation and error messaging.

Steps to Reproduce Navigate to the user management section. Add a new user with an email address that uses a non-existent domain (e.g., user@nonexistentdomain.com). Submit the form. Expected Result: The application should validate the email domain and provide a user-friendly error message indicating that the domain does not exist. Actual Result: The application throws an HTTP 500 server error, resulting in an unhandled exception.

image

vstruhar commented 3 months ago

Updated email validation, this should fix the error