Skip to content

fix: Use verified and primary email for GitHub signup #1230

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 1 commit into from
Apr 29, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This was causing a panic due to nil pointer dereference.
It required all users signing up had a public email,
which is an unreasonable requirement!

This was causing a panic due to nil pointer dereference.
It required all users signing up had a public email,
which is an unreasonable requirement!
@kylecarbs kylecarbs requested review from coadler and f0ssel April 29, 2022 19:42
@codecov
Copy link

codecov bot commented Apr 29, 2022

Codecov Report

Merging #1230 (7bf8a78) into main (35211e2) will increase coverage by 0.02%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##             main    #1230      +/-   ##
==========================================
+ Coverage   65.63%   65.66%   +0.02%     
==========================================
  Files         269      269              
  Lines       17337    17378      +41     
  Branches      162      164       +2     
==========================================
+ Hits        11379    11411      +32     
- Misses       4768     4776       +8     
- Partials     1190     1191       +1     
Flag Coverage Δ
unittest-go-macos-latest 52.97% <42.85%> (+0.04%) ⬆️
unittest-go-postgres- 64.71% <42.85%> (+<0.01%) ⬆️
unittest-go-ubuntu-latest 55.43% <42.85%> (+0.08%) ⬆️
unittest-go-windows-2022 52.53% <42.85%> (-0.02%) ⬇️
unittest-js 68.87% <ø> (+0.02%) ⬆️
Impacted Files Coverage Δ
coderd/userauth.go 54.16% <42.85%> (-4.17%) ⬇️
site/src/pages/UsersPage/UsersPage.tsx 75.00% <0.00%> (-7.36%) ⬇️
peerbroker/dial.go 77.04% <0.00%> (-6.56%) ⬇️
coderd/workspaceagents.go 55.59% <0.00%> (-2.56%) ⬇️
site/src/xServices/users/usersXService.ts 80.00% <0.00%> (-1.25%) ⬇️
site/src/api/index.ts 65.30% <0.00%> (ø)
provisioner/echo/serve.go 56.80% <0.00%> (ø)
site/src/testHelpers/entities.ts 100.00% <0.00%> (ø)
site/src/pages/UsersPage/UsersPageView.tsx 100.00% <0.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35211e2...7bf8a78. Read the comment docs.

Copy link
Contributor

@f0ssel f0ssel left a comment

Choose a reason for hiding this comment

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

We should document this somewhere, I feel like people will 100% run into this and the answer will be "make sure the email you are expecting is the primary". Not sure the best place to put that today.

@kylecarbs kylecarbs self-assigned this Apr 29, 2022
@kylecarbs
Copy link
Member Author

I think we'll need a better answer to how we do the email verification in general before launch, so we'll grab some customer feedback.

@kylecarbs kylecarbs merged commit 23e5636 into main Apr 29, 2022
@kylecarbs kylecarbs deleted the ghpanic branch April 29, 2022 20:13
kylecarbs added a commit that referenced this pull request Jun 10, 2022
This was causing a panic due to nil pointer dereference.
It required all users signing up had a public email,
which is an unreasonable requirement!
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.

3 participants