import { Button } from '@/components/Button'; import { DecoratedInput } from '@/components/DecoratedInput'; import { observer } from 'mobx-react-lite'; import { FunctionComponent } from 'preact'; import { Bullet } from './Bullet'; import { TwoFactorActivation } from './TwoFactorActivation'; import { ModalDialog, ModalDialogButtons, ModalDialogDescription, ModalDialogLabel, } from '@/components/shared/ModalDialog'; export const Verification: FunctionComponent<{ activation: TwoFactorActivation; }> = observer(({ activation: act }) => { const secretKeyClass = act.verificationStatus === 'invalid-secret' ? 'border-danger' : ''; const authTokenClass = act.verificationStatus === 'invalid-auth-code' ? 'border-danger' : ''; return ( Step 3 of 3 - Verification
Enter your secret key:
Verify the authentication code generated by your authenticator app:
{act.verificationStatus === 'invalid-auth-code' && (
Incorrect authentication code, please try again.
)} {act.verificationStatus === 'invalid-secret' && (
Incorrect secret key, please try again.
)}