|
@@ -166,7 +166,7 @@ discard block |
|
|
block discarded – undo |
|
166
|
166
|
|
|
167
|
167
|
$state = $this->authState::loadState($stateId, 'webauthn:request'); |
|
168
|
168
|
|
|
169
|
|
- if ( $this->workflowStateMachine($state) != self::STATE_AUTH_NOMGMT ) { |
|
|
169
|
+ if ($this->workflowStateMachine($state) != self::STATE_AUTH_NOMGMT) { |
|
170
|
170
|
$templateFile = 'webauthn:webauthn.twig'; |
|
171
|
171
|
} else { |
|
172
|
172
|
$templateFile = 'webauthn:authentication.twig'; |
|
@@ -206,7 +206,7 @@ discard block |
|
|
block discarded – undo |
|
206
|
206
|
$frontendData = []; |
|
207
|
207
|
$frontendData['challengeEncoded'] = $challengeEncoded; |
|
208
|
208
|
$frontendData['state'] = []; |
|
209
|
|
- foreach (['FIDO2Scope','FIDO2Username','FIDO2Displayname','requestTokenModel'] as $stateItem) { |
|
|
209
|
+ foreach (['FIDO2Scope', 'FIDO2Username', 'FIDO2Displayname', 'requestTokenModel'] as $stateItem) { |
|
210
|
210
|
$frontendData['state'][$stateItem] = $state[$stateItem]; |
|
211
|
211
|
} |
|
212
|
212
|
|
|
@@ -218,7 +218,7 @@ discard block |
|
|
block discarded – undo |
|
218
|
218
|
$t->data['frontendData'] = json_encode($frontendData); |
|
219
|
219
|
|
|
220
|
220
|
$t->data['FIDO2AuthSuccessful'] = $state['FIDO2AuthSuccessful']; |
|
221
|
|
- if ( $this->workflowStateMachine($state) == self::STATE_MGMT ) { |
|
|
221
|
+ if ($this->workflowStateMachine($state) == self::STATE_MGMT) { |
|
222
|
222
|
$t->data['regURL'] = Module::getModuleURL('webauthn/regprocess?StateId=' . urlencode($stateId)); |
|
223
|
223
|
$t->data['delURL'] = Module::getModuleURL('webauthn/managetoken?StateId=' . urlencode($stateId)); |
|
224
|
224
|
|
Please login to merge, or discard this patch.