Skip to content

Error message for missing verified e-mail address points to /me #6364

Closed
@Marcono1234

Description

@Marcono1234

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:

"A verified email address is required to publish crates to crates.io. \
Visit https://{}/me to set and verify your email address.",

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:
Profile page screenshot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions