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

Support deactivating your account with SSO #4356

Merged
merged 1 commit into from
Apr 8, 2020
Merged

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Apr 7, 2020

Fixes element-hq/element-web#12940

I don't know why Riot refuses to accept my translatable strings:
image
image

Password authentication has also been tested and still works.

@turt2live turt2live requested a review from a team April 7, 2020 17:09
@turt2live turt2live added the X-Release-Blocker This affects the current release cycle and must be solved for a release to happen label Apr 7, 2020
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable code-wise. Seems like it should also get design review, so I'll add it to that queue as well.

_onPasswordFieldChange(ev) {
this.setState({
password: ev.target.value,
MatrixClientPeg.get().deactivateAccount(null, false).then(r => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, calling something as serious as deactiveAccount in a constructor feels scary to me, but I guess any server implementing the spec would first 401 here.

I assume you have to do it to present the right text in the button for SSO.

@jryans jryans requested a review from a team April 8, 2020 11:01
Copy link
Contributor

@nadonomy nadonomy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we should design this properly, replacing the novella with clearer copy and iconography, but no need to couple those changes to this PR given everything in flight this week.

LGTM.

@jryans
Copy link
Collaborator

jryans commented Apr 8, 2020

Merging to add this into the RC today.

@jryans jryans merged commit 8ffc206 into develop Apr 8, 2020
@turt2live turt2live deleted the travis/deactivate-sso branch April 8, 2020 15:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
X-Release-Blocker This affects the current release cycle and must be solved for a release to happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSO UIA for account deactivation
3 participants