console icon indicating copy to clipboard operation
console copied to clipboard

Add exception handling to view account recovery poup

Open nimish-ks opened this issue 7 months ago • 9 comments

Describe the bug

Currently if a user wishes to view their recovery phrase by going to setting and happens enters an incorrect sudo password and clicks unlock the process fails silently without any obvious indication weather the password entered was correct or not.

To Reproduce

Steps to reproduce the behavior:

  1. Log into the Phase Console
  2. Go to Settings
  3. Click on the Account tab
  4. In the Recovery section click - View recovery info 4.5 Open browser console
  5. In the View account recovery popup enter an incorrect password

Expected behavior

  1. There should be an indicator, ideally in the form of a spinner that is displayed on the Unlock button while the crypto functions are fired and keys are computed
  2. If a password that the user has entered is incorrect, a toast indicating a failure should be shown.

Screenshots

image

nimish-ks avatar Jul 15 '24 15:07 nimish-ks