Skip to content

Commit 55a3e76

Browse files
committed
Fix 2FA codes missing prepended 0s
1 parent 6188b92 commit 55a3e76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/scripts/components/auth/LoginCheckpointContainer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const LoginCheckpointContainer = () => {
4040
? 'Enter one of the recovery codes generated when you setup 2-Factor authentication on this account in order to continue.'
4141
: 'Enter the two-factor token generated by your device.'
4242
}
43-
type={isMissingDevice ? 'text' : 'number'}
43+
type={'text'}
4444
autoFocus
4545
/>
4646
</div>
@@ -81,6 +81,7 @@ const LoginCheckpointContainer = () => {
8181
const EnhancedForm = withFormik<Props, Values>({
8282
handleSubmit: ({ code, recoveryCode }, { setSubmitting, props: { addError, clearFlashes, location } }) => {
8383
clearFlashes();
84+
console.log(code);
8485
loginCheckpoint(location.state?.token || '', code, recoveryCode)
8586
.then(response => {
8687
if (response.complete) {

0 commit comments

Comments
 (0)