Trying to change email address to one that's in use results in confusing errors and display

Description

1. Log in
2. Hi, username! > My Preferences > Change My User Name > Change Email
3. For "New Email," enter an address you know is associated with another account
4. Enter the same address exactly in "Confirm New Email"
5. Enter your password in "Password"
6. Press "Change Email"

What happens:

  • Above the "Change My Email" heading is an error that is incorrect: "Email addresses don't match! Please retype and try again"

  • Below the "Change My Email" heading is the correct error:

    Sorry! We couldn't save this user because:

    Email has already been taken

  • The email address you just entered is show by the "Current Email" text, as if it saved (it did not)

Screenshot is attached.

What should happen:

  • The error "Email addresses don't match! Please retype and try again" should not appear (unless it's true)

  • The "Current Email" text should be the email address that is actually associated with your account, not the one you tried to change it to

  • The error about the email address being taken should appear as it currently does

Assignee

Unassigned

Reporter

Sarken

Roadmap

Users

Priority

Low

Affects versions

Fix versions

None

Components

BackEnd
FrontEnd

Difficulty

Medium

Milestone

Internal 0.9