-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
Unconfirmed email profile should return 404 #5143
base: master
Are you sure you want to change the base?
Unconfirmed email profile should return 404 #5143
Conversation
9dd517e
to
c4aab95
Compare
cc @martinemde |
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.
This looks good! Thank you for including a test. I think if you swap the code to use our utility method, the test should still pass and we can merge this. Thank you!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5143 +/- ##
==========================================
- Coverage 96.05% 93.21% -2.85%
==========================================
Files 429 429
Lines 9106 9167 +61
==========================================
- Hits 8747 8545 -202
- Misses 359 622 +263 ☔ View full report in Codecov by Sentry. |
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.
Thanks! Don't worry about the test failures, I will get those'd fixed
2958b9f
to
4356fc8
Compare
- Added a check for profiles whose email has not been confirmed, so the show page can return 404 for such profiles
Co-authored-by: Martin Emde <[email protected]>
Use confirmed scope for finding user by slug so there is no need checking the user record directly
4356fc8
to
b965af5
Compare
It is possible to view the profile page of a user whose email has not been confirmed. To resolve #5079, this PR returns a 404 error page for the profile page when the email has not been confirmed.