Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

sketchy validator patch #84

Merged
merged 1 commit into from
Mar 17, 2017
Merged

Conversation

bryanchriswhite
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 83.087% when pulling f47f827 on bryanchriswhite:master into a1bf1f8 on Storj:master.

@braydonf
Copy link
Contributor

What up with this? There are some known issues with the regex #75 but what issue is this solving?

@@ -22,11 +22,7 @@ var StorageEvent = new mongoose.Schema({
user: {
type: String,
ref: 'User',
required: true,
Copy link
Contributor

@braydonf braydonf Mar 17, 2017

Choose a reason for hiding this comment

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

This should remain as true. And email validation should be consistent across all models. The validation should be fixed not removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@braydonf it is still true.. see line 25

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh... okay. But why remove the validation?

@braydonf
Copy link
Contributor

We may want to relax the regex to only care about the maximum length of the characters (<64 characters>@<255 characters>), as mentioned in #45. Validation will ultimately be tested by if the address can receive email.

@phutchins
Copy link
Contributor

This is a temporary fix... Merging.

@phutchins phutchins merged commit 5713439 into storj-archived:master Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants