-
Notifications
You must be signed in to change notification settings - Fork 616
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
Add API token creation notifications #9245
Conversation
b77b774
to
83c8313
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9245 +/- ##
==========================================
+ Coverage 89.27% 89.29% +0.01%
==========================================
Files 282 282
Lines 28590 28629 +39
==========================================
+ Hits 25525 25563 +38
- Misses 3065 3066 +1 ☔ 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.
looks good to me at first glance, but I'm on mobile-only due to vacation until the end of the week so a proper review will have to wait until then :)
in any case, thanks for working on this!
No worries! Go and enjoy vacation - this can definitely wait 🙏 |
When a new token is created for an account, send a notification email to the account owner.
Use "{domain}" instead of "crates.io" when describing where the token was created.
Reduces the diff of the pull request since this is an unrelated change ;)
A little easier on the eyes :)
91da220
to
4618f59
Compare
I've rebased and slightly tweaked it to include the token name in the notification email, but other than that this looks great. thanks again! :) |
This PR will make crates.io email the user's registered email address when a new token is added to their account.
An email notification helps mitigate a sneaky 3rd party with access to the account from creating a token and using it to do nasty things later. Without the notification you'd only know about the token if you were periodically checking the token page.
Part of #2639
feat: token creation notification email (83c8313)