HomePhabricator
Diffusion Comm 32894cf32ae3

[native] add back password input for account deletion

Description

[native] add back password input for account deletion

Summary:
as per the white paper, we will require password users to enter their password in order to delete their account.

Depends on D12325

Test Plan:

  1. usingCommServicesAccessToken = false; no change to the UI
  2. usingCommServicesAccessToken = true, password user; prompted for password, if incorrect, identity account deletion fails and alert is displayed, but user is not logged out. if correct, account successfully deleted and user is logged out
  3. usingCommServicesAccessToken = true, wallet user; no change to the UI, account deletion successful
  4. usingCommServicesAccessToken = true, password user, keyserver offline; prompted for password, if correct identity account deletion succeeds but keyserver account deletion fails. user is logged out and deleteAccountActionTypes.success is dispatched

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-06 at 01.01.02.png (2×1 px, 234 KB)

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-06 at 01.00.48.png (2×1 px, 144 KB)

Reviewers: ashoat, tomek, inka

Reviewed By: ashoat, inka

Subscribers: inka, kamil

Differential Revision: https://phab.comm.dev/D12326

Details

Provenance
varunAuthored on Jun 5 2024, 9:47 PM
Reviewer
ashoat
Differential Revision
D12326: [native] add back password input for account deletion
Parents
rCOMMa812d2e99185: [lib][native] update useDeleteDiscardedIdentityAccount to call…
Branches
Unknown
Tags
Unknown