diff --git a/resources/scripts/components/auth/LoginCheckpointContainer.tsx b/resources/scripts/components/auth/LoginCheckpointContainer.tsx index d2c3c8643..f45073281 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(); + loginCheckpoint(location.state?.token || '', code, recoveryCode) .then(response => { if (response.complete) {