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

Added email validation for Admin Invite #117

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yasshhhhh
Copy link

Fixes #112

Added email validation to invite admin.
Input box is highlighted red, error message displayed and the invite button is disabled for invalid emails.

image

image

What was changed?
All changes in account-popover.js

How was it changed?
Added a custom email validator using regex and new state variable(validEmail) to maintain logic.

@LikhitaPulijala
Copy link
Collaborator

LikhitaPulijala commented Apr 9, 2024

@Yasshhhhh Show the red highlight box after hitting invite button.

@Yasshhhhh
Copy link
Author

@LikhitaPulijala I don't quite understand what you mean. Please elaborate.

@LikhitaPulijala
Copy link
Collaborator

@LikhitaPulijala I don't quite understand what you mean. Please elaborate.

Prior to entering an email address, the box is highlighted in red. This highlighting should only appear if the input is incorrect.

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.

Email validation is required for Invite Admin functionality
3 participants