| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class StaticProcessHelper |
||
| 10 | { |
||
| 11 | public static function saveStateAndRedirect(&$state) |
||
| 12 | { |
||
| 13 | $id = Auth\State::saveState($state, 'webauthn:request'); |
||
| 14 | $url = Module::getModuleURL('webauthn/webauthn.php'); |
||
| 15 | Utils\HTTP::redirectTrustedURL($url, ['StateId' => $id]); |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function prepareState($stateData, &$state) |
||
| 31 | } |
||
| 32 | } |
||
| 33 |