Description
Current Behavior
When you try to run cargo publish
without verified e-mail address on crates.io, it says:
Caused by:
the remote server responded with an error: A verified email address is required to publish crates to crates.io. Visit https://crates.io/me to set and verify your email address.
The relevant code seems to be here:
crates.io/src/controllers/krate/publish.rs
Lines 104 to 105 in fd002a7
The problem is that you restructured the crates.io account settings page (#4309), and then added a redirect for /me
(#4311), which now points to the wrong page, the API token page.
Expected Behavior
The error message should point to https://crates.io/settings/profile
Steps To Reproduce
No response
Environment
should not matter
Anything else?
Maybe also make it more obvious on the Profile page that you have currently not set an email address. Currently it looks like this:
I even had that page open before, but assumed it just did not display the e-mail address, maybe for privacy reasons. (Though I might not have read the text closely enough.)
Also, you could probably obtain a default e-mail address from GitHub if you wanted, see user:email
scope. Though in that case you should still consider it sensitive and not display it publicly anywhere.