From 55a3e76d99083e9e749e25369a44b973da93fbe5 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sat, 11 Jul 2020 13:07:54 -0600 Subject: [PATCH] Fix 2FA codes missing prepended 0s --- resources/scripts/components/auth/LoginCheckpointContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/scripts/components/auth/LoginCheckpointContainer.tsx b/resources/scripts/components/auth/LoginCheckpointContainer.tsx index d2c3c864..cfbbf357 100644 --- a/resources/scripts/components/auth/LoginCheckpointContainer.tsx +++ b/resources/scripts/components/auth/LoginCheckpointContainer.tsx @@ -40,7 +40,7 @@ const LoginCheckpointContainer = () => { ? 'Enter one of the recovery codes generated when you setup 2-Factor authentication on this account in order to continue.' : 'Enter the two-factor token generated by your device.' } - type={isMissingDevice ? 'text' : 'number'} + type={'text'} autoFocus /> @@ -81,6 +81,7 @@ const LoginCheckpointContainer = () => { const EnhancedForm = withFormik({ handleSubmit: ({ code, recoveryCode }, { setSubmitting, props: { addError, clearFlashes, location } }) => { clearFlashes(); + console.log(code); loginCheckpoint(location.state?.token || '', code, recoveryCode) .then(response => { if (response.complete) {