Skip to content

Email Validation added #1120

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

Merged
merged 6 commits into from
Jul 23, 2019
Merged

Email Validation added #1120

merged 6 commits into from
Jul 23, 2019

Conversation

plxity
Copy link
Contributor

@plxity plxity commented Jul 18, 2019

I have verified that this pull request:
Fixes #1119

  • has no linting errors (npm run lint)
  • is from a uniquely-named feature branch and has been rebased on top of the latest master. (If I was asked to make more changes, I have made sure to rebase onto master then too)
  • is descriptively named and links to an issue number, i.e. Fixes #123

@catarak Please review it :)

Copy link
Member

@catarak catarak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since there are no changes to package.json, there should be no changes to package-lock.json committed with this PR.

errors.email = 'Please enter an email.';
} else if (
// eslint-disable-next-line max-len
!formProps.email.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a file called client/utils/reduxFormUtils.js that has validation functions, including a regex to validate an email address. i would put a function in there and use that regex!

Copy link
Contributor Author

@plxity plxity Jul 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@catarak Okay, I will use that file functions for validations.

@catarak
Copy link
Member

catarak commented Jul 18, 2019

thanks for working on this issue!

@plxity plxity changed the title changes Email Validation added' Jul 22, 2019
@plxity plxity changed the title Email Validation added' Email Validation added Jul 22, 2019
@plxity
Copy link
Contributor Author

plxity commented Jul 22, 2019

@catarak Please review it :)

@catarak
Copy link
Member

catarak commented Jul 23, 2019

this works great. merging now!

@catarak catarak merged commit 4c1ebdf into processing:master Jul 23, 2019
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.

No check present for valid email address
2 participants