Add a confirmation modal before account deactivation#6107
Conversation
|
So the difficulty here is that there is already a modal, but we need to ask the server whether it accepts password or SSO for confirmation and the only way to do that is to hit the /deactivate endpoint, which sometimes the server will just do implicitly if you performed UIA/logged in recently. So with this change, you may end up with two warnings. The one added here and then also the one in my screenshot, depending on the state of the server. |
Yes, I knew about this. I tested this with one of my test accounts, the modal disappeared immediately and it was deactivated in no time with the settings panel still being active.
Yeah, I think it would be better if we have two warnings as this is related to account deletion. |
|
Regardless of whether there should be one warning or two warnings, it should be consistent. There should always be the same number of warnings. Some users should not get one warning while others get two. (though as a temporarily workaround this is certainly better than nothing) |
|
I agree, but as mentioned in the issue, this is just a temporary workaround to prevent accidental deletions. We would probably remove this warning in the future. |
|
Is this still relevant now that matrix-org/synapse#10184 is merged which will not skip UI auth for account deletion? The other modal will now show always AFAICT. |
|
No, it isn't. Closing this. |

Closes element-hq/element-web#17422
Signed-off-by: Jaiwanth jaiwanth2011@gmail.com