| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public static function prepareState($stateData, &$state) |
||
| 19 | { |
||
| 20 | $state['requestTokenModel'] = $stateData->requestTokenModel; |
||
| 21 | $state['webauthn:store'] = $stateData->store; |
||
| 22 | $state['FIDO2Tokens'] = $stateData->store->getTokenData($state['Attributes'][$stateData->usernameAttrib][0]); |
||
| 23 | $state['FIDO2Scope'] = $stateData->scope; |
||
| 24 | $state['FIDO2DerivedScope'] = $stateData->derivedScope; |
||
| 25 | $state['FIDO2Username'] = $state['Attributes'][$stateData->usernameAttrib][0]; |
||
| 26 | $state['FIDO2Displayname'] = $state['Attributes'][$stateData->displaynameAttrib][0]; |
||
| 27 | $state['FIDO2SignupChallenge'] = hash('sha512', random_bytes(64)); |
||
| 28 | $state['FIDO2WantsRegister'] = false; |
||
| 29 | $state['FIDO2AuthSuccessful'] = false; |
||
| 30 | $state['UseInflowRegistration'] = $stateData->useInflowRegistration; |
||
| 31 | } |
||
| 33 |