-
Notifications
You must be signed in to change notification settings - Fork 671
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
MF-1099 - Add email subdomain validator #1101
Conversation
Signed-off-by: Manuel Imperiale <[email protected]>
users/users.go
Outdated
return false | ||
} | ||
domain, ext := hs[0], hs[1] | ||
|
||
// Check subdomain and validate | ||
if len(hs) == 3 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 3? Can there be multiple subdomains (I do not know, but theorethically stere can be sub-subdomain)?
Signed-off-by: Manuel Imperiale <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1101 +/- ##
=======================================
Coverage 77.10% 77.10%
=======================================
Files 95 95
Lines 6760 6769 +9
=======================================
+ Hits 5212 5219 +7
- Misses 1211 1213 +2
Partials 337 337
Continue to review full report at Codecov.
|
Signed-off-by: Manuel Imperiale <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Manuel Imperiale <[email protected]>
* MF-1099 - Add email subdomain validator Signed-off-by: Manuel Imperiale <[email protected]> * Add unlimited sub domains Signed-off-by: Manuel Imperiale <[email protected]> * Fix users tests with error nil Signed-off-by: Manuel Imperiale <[email protected]> * Revert users test Signed-off-by: Manuel Imperiale <[email protected]>
Signed-off-by: Manuel Imperiale [email protected]
Resolves #1099