izanami icon indicating copy to clipboard operation
izanami copied to clipboard

Password protect delete operation

Open ptitFicus opened this issue 1 year ago • 0 comments

Description

When a user attempts to delete any of the following entities:

  • [ ] Tenants
  • [ ] Projects
  • [ ] Keys
  • [ ] Webhooks

A confirmation pop-up will be displayed. In this pop-up, the user must re-enter their password in order to confirm the deletion. The pop-up will contain not only

  • A warning message confirming the deletion action with buttons for for "Confirm" and "Cancel": Capture d’écran 2024-09-19 à 11 34 30

But also

  • A password input field where the user will re-enter their current password : Capture d’écran 2024-09-19 à 11 34 51

Requirements:

  1. Password Prompt & validation:
    • If the password is incorrect, display an error message and prevent deletion.
    • If the password is correct, proceed with the deletion.
    • The password should be validated against the currently logged-in user’s password.
  2. UI/UX Considerations:
    • Clear messaging in the prompt (e.g., “Please enter your password to confirm deletion”).

ptitFicus avatar Jun 05 '23 06:06 ptitFicus