Deleting passkeys with incorrect password redirects users to passkey registration page

Steps to reproduce:

  • On https://staging-ref.gitlab.com/ navigate to account settings and register a passkeys, or navigate to an existing registered passkey.
  • Use the delete icon to delete the passkey, but when prompted to confirm password, type in incorrect password
  • The UI will navigate to the register passkey UI, instead of an error message indicating the error.Screenshot_2025-12-12_at_1.03.05_PM

Screenshot_2025-12-12_at_1.03.16_PM

Expected

We show a validation error like we do for WebauthN deletion.

Edited by 🤖 GitLab Bot 🤖