Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvement(auth): use V3 alert for passkey failures (#8655)
Andrew Huang2c8e7ef2f658
diff --git a/frontend/src/components/auth/Mfa.tsx b/frontend/src/components/auth/Mfa.tsxindex 5d79803274..f64e186d60 100644--- a/frontend/src/components/auth/Mfa.tsx+++ b/frontend/src/components/auth/Mfa.tsx@@ -2,12 +2,14 @@ import { useEffect, useRef, useState } from "react";import { startAuthentication } from "@simplewebauthn/browser";import { useNavigate } from "@tanstack/react-router";import { t } from "i18next";+import { CircleXIcon } from "lucide-react";-import Error from "@app/components/basic/Error";import { MfaEnrollment } from "@app/components/mfa/MfaEnrollment";import { createNotification } from "@app/components/notifications";import SecurityClient from "@app/components/utilities/SecurityClient";import {+ Alert,+ AlertDescription,Button,CardContent,Tooltip,@@ -424,9 +426,12 @@ export const Mfa = ({ successCallback, closeMfa, email, method, onChangeAccount{method === MfaMethod.WEBAUTHN && !showRecoveryCodeInput ? (<div className="flex flex-col gap-5">{typeof triesLeft === "number" && (- <Error- text={`Failed authentication. You have ${triesLeft} attempt(s) remaining.`}- />+ <Alert variant="danger">+ <CircleXIcon />+ <AlertDescription>+ {`Failed authentication. You have ${triesLeft} attempt(s) remaining.`}+ </AlertDescription>+ </Alert>)}<Buttonsize="lg"diff --git a/frontend/src/components/basic/Error.tsx b/frontend/src/components/basic/Error.tsxdeleted file mode 100644index f5a887134a..0000000000--- a/frontend/src/components/basic/Error.tsx+++ /dev/null@@ -1,13 +0,0 @@-import { faExclamationTriangle } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";--const Error = ({ text }: { text: string }): JSX.Element => {- return (- <div className="relative m-auto flex w-fit flex-row items-center justify-center rounded-full">- <FontAwesomeIcon icon={faExclamationTriangle} className="mx-2 mt-1.5 mb-2 text-danger" />- {text && <p className="relative top-0 mr-2 py-1 text-sm text-danger">{text}</p>}- </div>- );-};--export default Error;