Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Make email auth component fail better if server claims email isn't validated #4600

Merged
merged 1 commit into from
May 15, 2020

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented May 15, 2020

matrix-org/synapse#7512 means that (at least)
sometimes after clicking on the email validation link and being redirected
to riot, the server will claim the email identity auth stage is still incomplete.

This meant that we displayed the email identity UIA component but with an empty
email address, because we don't know that in the new session. Work around this by
assuming that if the email UIA component is being displayed but we don't have an
email address input, the link has been clicked and we're just waiting for the poll.

Also don't fire off an initial register request if we're already mid-UI-auth, because
that's confusing and unnecessary.

Also also remove unused requestingToken state.

Fixes element-hq/element-web#13434

…lidated

matrix-org/synapse#7512 means that (at least)
sometimes after clicking on the email validation link and being redirected
to riot, the server will claim the email identity auth stage is still incomplete.

This meant that we displayed the email identity UIA component but with an empty
email address, because we don't know that in the new session. Work around this by
assuming that if the email UIA component is being displayed but we don't have an
email address input, the link has been clicked and we're just waiting for the poll.

Also don't fire off an initial register request if we're already mid-UI-auth, because
that's confusing and unnecessary.

Also also remove unused requestingToken state.

Fixes element-hq/element-web#13434
@dbkr dbkr requested a review from a team May 15, 2020 12:38
@dbkr dbkr merged commit 07eed94 into develop May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-using tab for email verification link results in 'we have sent an email to <blank space>'
2 participants