@@ -12,7 +12,11 @@ import {
|
||||
import { OTP_MAX_LENGTH } from '@/hooks/use-two-factor-auth';
|
||||
import { store } from '@/routes/two-factor/login';
|
||||
|
||||
export default function TwoFactorChallenge() {
|
||||
export default function TwoFactorChallenge({
|
||||
qaAccount,
|
||||
}: {
|
||||
qaAccount?: { id: number; email: string };
|
||||
}) {
|
||||
const [showRecoveryInput, setShowRecoveryInput] = useState<boolean>(false);
|
||||
const [code, setCode] = useState<string>('');
|
||||
|
||||
@@ -53,6 +57,16 @@ export default function TwoFactorChallenge() {
|
||||
<>
|
||||
<Head title="Two-factor authentication" />
|
||||
|
||||
{qaAccount && (
|
||||
<p
|
||||
className="mb-4 rounded border border-amber-300 bg-amber-50 p-3 text-sm text-slate-900"
|
||||
role="status"
|
||||
>
|
||||
MFA da conta QA {qaAccount.id}: {qaAccount.email}. Confirme
|
||||
com o autenticador desta conta.
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="space-y-6">
|
||||
<Form
|
||||
{...store.form()}
|
||||
|
||||
Reference in New Issue
Block a user