Skip to content

Commit 43c4e5f

Browse files
committed
work around uninitialised state error
1 parent 076a2e6 commit 43c4e5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/WebAuthn.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public static function workflowStateMachine($state) {
106106
return self::STATE_AUTH_ALLOWMGMT;
107107
} else { // in inflow, allow to check the management box; otherwise,
108108
// only auth
109-
return $state['UseInflowRegistration'] ? self::STATE_AUTH_ALLOWMGMT : self::STATE_AUTH_NOMGMT;
109+
$moduleConfig = Configuration::getOptionalConfig('module_webauthn.php')->toArray();
110+
return $moduleConfig['use_inflow_registration'] ? self::STATE_AUTH_ALLOWMGMT : self::STATE_AUTH_NOMGMT;
110111
}
111112
}
112113

src/WebAuthn/StaticProcessHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ public static function prepareState(StateData $stateData, array &$state): void
2929
$state['FIDO2SignupChallenge'] = hash('sha512', random_bytes(64));
3030
$state['FIDO2WantsRegister'] = false;
3131
$state['FIDO2AuthSuccessful'] = false;
32-
$state['UseInflowRegistration'] = $stateData->useInflowRegistration;
3332
}
3433
}

0 commit comments

Comments
 (0)