From 6e0cdb8a6b3d1237e8f2af1892f21422e9fe6fc1 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Thu, 2 May 2024 21:52:46 -0400 Subject: [PATCH] Document 2FA wizard structure --- src/UI/UIWindow2FASetup.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/UI/UIWindow2FASetup.js diff --git a/src/UI/UIWindow2FASetup.js b/src/UI/UIWindow2FASetup.js new file mode 100644 index 000000000..bc0f630b0 --- /dev/null +++ b/src/UI/UIWindow2FASetup.js @@ -0,0 +1,23 @@ +/* + Plan: + Components: OneAtATimeView < ... > + + Screen 1: QR code and entry box for testing + Components: Flexer < QRCodeView, CodeEntryView, ActionsView > + Logic: + - when CodeEntryView has a value, check it against the QR code value... + ... then go to the next screen + - CodeEntryView will have callbacks: `verify`, `on_verified` + - cancel action + + Screen 2: Recovery codes + Components: Flexer < RecoveryCodesView, ConfirmationsView, ActionsView > + Logic: + - done action + - cancel action + - when done action is clicked, call /auth/configure-2fa/enable + +*/ + +const UIWindow2FASetup = async function UIWindow2FASetup () { +} \ No newline at end of file