Unable to migrate account from email to SAML

Description

Repro steps:
1. Configure a Mattermost server with SAML (or use an existing one)
2. Log in with an email account
3. From account settings -> security, migrate your account to SAML
4. Enter current email account's password and hit enter
5. (skipped if already signed in) Enter credentials for SAML account

Observed: Migration fails after logging into SAML provider
Expected: Migration successful

Reproduces on community, community-release, community-daily.

Candidate for hotfix.

QA Test Steps

See description.

Mana

None

Assignee

Claudio Costa

QA Assignee

Lindy Isherwood

Reporter

Joram Wilander

Epic Link

None

Mattermost Team

Platform

Sprint

None

QA Testing Areas

SAML

GitHub Issue

None

Components

None

Severity

None
Configure