Organization Plugin: Empty invitation handling
After implementing organization invitation in my project, I discovered that I can send an empty email in the
Example of the bug:
organization.inviteMember And the function would work correctly.Example of the bug:
- User sends an invitation to the organization for an empty string email ""
- The function takes it normally without throwing an error and stores it in database with
email = ""
- User tries sending invitation to an empty email string
- Error return saying that the email must be valid or something like this
