-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
skip email validation on empty string #13627
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
skip email validation on empty string #13627
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13627 +/- ##
=======================================
Coverage 42.20% 42.20%
=======================================
Files 697 697
Lines 76589 76597 +8
=======================================
+ Hits 32325 32331 +6
+ Misses 38948 38947 -1
- Partials 5316 5319 +3
Continue to review full report at Codecov.
|
regression of #13475 - so I'll add skip-changelog label |
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.
As per my comment
- move validation into its own function - use a session for UpdateUserSetting
fcaa90d
to
5aab44f
Compare
@lafriks done |
- move validation into its own function - use a session for UpdateUserSetting
* Add email validity check (#13475) * Improve error feedback for duplicate deploy keys Instead of a generic HTTP 500 error page, a flash message is rendered with the deploy key page template so inform the user that a key with the intended title already exists. * API returns 422 error when key with name exists * Add email validity checking Add email validity checking for the following routes: [Web interface] 1. User registration 2. User creation by admin 3. Adding an email through user settings [API] 1. POST /admin/users 2. PATCH /admin/users/:username 3. POST /user/emails * Add further tests * Add signup email tests * Add email validity check for linking existing account * Address PR comments * Remove unneeded DB session * Move email check to updateUser Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]> * skip email validation on empty string (#13627) - move validation into its own function - use a session for UpdateUserSetting * rm TODO for backport Co-authored-by: Chris Shyi <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: techknowlogick <[email protected]>
close #13587
close #13653