Skip to content
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

Change email address input to be read-only for logged-in users when requesting a new confirmation e-mail #23247

Merged

Conversation

ClearlyClaire
Copy link
Contributor

Fixes #23093

If a user fails to receive their confirmation e-mail, they can request a new one through /auth/confirmation/new. In case they are logged in, which is the most likely, this will be pre-filled with their initial e-mail address. If they change the e-mail address, they would likely expect the e-mail to be sent to the new address instead, but this is not what this controller does: it sends an e-mail to that address if it corresponds to an existing user. When the user is not logged in, this is explained in a notice, but when the user is logged in, it redirects to /auth/setup, which has a different notice.

To reduce the confusion, this PR makes the input read-only and adds a hint in this case, instructing to go to Account settings to change the e-mail address:
image

@Gargron Gargron merged commit dd58db6 into mastodon:main Jan 24, 2023
btrd pushed a commit to btrd/mastodon that referenced this pull request Feb 22, 2023
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.

Verification email retry fails to update the message onscreen
2 participants