Email address change - click link 2nd time

AI 生成的摘要

The discussion revolves around improving the user experience when verifying an email address change in Discourse. DeanMarkTaylor notes that clicking the verification link a second time after successful verification displays a confusing error: “Perhaps the address is already in use?” They suggest clarifying the message to include “or the email address has already been verified,” since users often re-click links thinking they’re new. codinghorror assigns this to techAPJ for implementation. Separately, Rottenbot reports not receiving the confirmation email when changing to a group email, despite checking spam and confirming forwarding settings. codinghorror suggests checking spam, but Rottenbot confirms no success. techAPJ directs them to a console guide for staff email changes. Finally, techAPJ confirms the error message has been updated via commit cafbf50 to match the account confirmation flow: “Sorry, this account confirmation link is no longer valid. Perhaps your account is already active?” codinghorror confirms the fix works as intended.

When you change your email address you receive a verification email:

Confirm your new email address for {Amazing Discourse Website} by clicking on the following link:
http://discourse.example.com/users/authorize-email/{some-long-code-here}

If the user clicks the link a 2nd time (after successfully verifying) the following message is displayed:

There was an error changing your email address. Perhaps the address is already in use?

Consider changing this error message to:

There was an error changing your email address. Perhaps the address is already in use or the email address has already been verified?

Yes, users click links in emails again thinking it’s a new email.

Alternatively if possible just log the user in? If the data is no longer available because the verification code is removed after verification then just updating the message would be great.

@techapj can you add this to your list, we need a different error message here when the email was already verified.

I’ve attempted to change the email address of my account to a group email account.
Once the change is made the system tells me I should be getting a confirmation email but one never arrives at the group account.

Are group email accounts supported? @codinghorror

The confirmatiom email is definitely sent, did you check your email spam folder?

@codinghorror no such luck checking spam. Group setting have all emails being forwarded to a group of 3 individuals and I had all check. I there a way to reset an email address via a support channel perhaps?

We do have this guide:

1 个赞

Done via:

https://github.com/discourse/discourse/commit/cafbf506cca48e9bf444c024d5bccd06b4e009d0

The error message is now consitent with how we handle multiple clicks on account confirmation link.

4 个赞

Cool, confirmed on try:

Sorry, this account confirmation link is no longer valid. Perhaps your account is already active?

1 个赞