Skip to content

Add validation for work email in signup form#1585

Merged
cannarocks merged 2 commits into
masterfrom
develop
Apr 14, 2026
Merged

Add validation for work email in signup form#1585
cannarocks merged 2 commits into
masterfrom
develop

Conversation

@cannarocks
Copy link
Copy Markdown
Member

This pull request enhances the signup form validation by adding a new rule that requires users to register with a work email address, blocking common personal email domains. It also updates the English and Italian translation files to support the new validation message.

Signup validation improvements:

  • Added a custom validation in validationSchema.ts to prevent users from signing up with personal email domains (e.g., Gmail, Yahoo, Outlook, etc.), requiring a work email instead. The validation uses a list of common personal email domains and displays a new error message if triggered.

Localization updates:

  • Added a new English translation string for the work email validation error: "SIGNUP_FORM_EMAIL_MUST_BE_A_WORK_EMAIL".
  • Added a placeholder for the same string in the Italian translation file.

@cannarocks cannarocks merged commit 82665d0 into master Apr 14, 2026
23 checks passed
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 this pull request may close these issues.

1 participant