diff options
author | Florian Dold <florian@dold.me> | 2022-04-13 19:32:12 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-04-13 19:32:17 +0200 |
commit | 5054ff6c6d200e8d4d7658e001b0bcb1936d6876 (patch) | |
tree | 325c7ad151554cc5927c266f0331eb4fdad57516 /packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx | |
parent | ec9aed276a5c837a9a93bae2a4c2e61d77256cc1 (diff) | |
download | wallet-core-5054ff6c6d200e8d4d7658e001b0bcb1936d6876.tar.xz |
anastasis-webui: make TOTP work again
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx index ce7b2e545..ee4937441 100644 --- a/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx +++ b/packages/anastasis-webui/src/pages/home/authMethod/AuthMethodTotpSolve.tsx @@ -11,7 +11,7 @@ import { AnastasisClientFrame } from "../index"; import { SolveOverviewFeedbackDisplay } from "../SolveScreen"; import { AuthMethodSolveProps } from "./index"; -export function AuthMethodTotpSolve({ id }: AuthMethodSolveProps): VNode { +export function AuthMethodTotpSolve(props: AuthMethodSolveProps): VNode { const [answerCode, setAnswerCode] = useState(""); const reducer = useAnastasisContext(); @@ -74,7 +74,7 @@ export function AuthMethodTotpSolve({ id }: AuthMethodSolveProps): VNode { async function onNext(): Promise<void> { console.log(`sending TOTP code '${answerCode}'`); return reducer?.transition("solve_challenge", { - pin: Number.parseInt(answerCode), + answer: answerCode, }); } function onCancel(): void { |