forked from Alex/Pterodactyl-Panel
Fix 2FA codes missing prepended 0s
This commit is contained in:
parent
6188b9287c
commit
55a3e76d99
@ -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
|
||||
/>
|
||||
</div>
|
||||
@ -81,6 +81,7 @@ const LoginCheckpointContainer = () => {
|
||||
const EnhancedForm = withFormik<Props, Values>({
|
||||
handleSubmit: ({ code, recoveryCode }, { setSubmitting, props: { addError, clearFlashes, location } }) => {
|
||||
clearFlashes();
|
||||
console.log(code);
|
||||
loginCheckpoint(location.state?.token || '', code, recoveryCode)
|
||||
.then(response => {
|
||||
if (response.complete) {
|
||||
|
Loading…
Reference in New Issue
Block a user