@@ -26,18 +26,18 @@ |
||
26 | 26 | throw new Exception("Attempt to access the token management page unauthenticated."); |
27 | 27 | } |
28 | 28 | switch ($_POST['submit']) { |
29 | - case "NEVERMIND": |
|
30 | - Auth\ProcessingChain::resumeProcessing($state); |
|
31 | - break; |
|
32 | - case "DELETE": |
|
33 | - if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) { |
|
34 | - throw new Exception("Attempt to delete the currently used credential despite UI preventing this."); |
|
35 | - } |
|
36 | - $store = $state['webauthn:store']; |
|
37 | - $store->deleteTokenData($_POST['credId']); |
|
38 | - Auth\ProcessingChain::resumeProcessing($state); |
|
39 | - break; |
|
40 | - default: |
|
41 | - throw new Exception("Unknown submit button state."); |
|
29 | + case "NEVERMIND": |
|
30 | + Auth\ProcessingChain::resumeProcessing($state); |
|
31 | + break; |
|
32 | + case "DELETE": |
|
33 | + if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) { |
|
34 | + throw new Exception("Attempt to delete the currently used credential despite UI preventing this."); |
|
35 | + } |
|
36 | + $store = $state['webauthn:store']; |
|
37 | + $store->deleteTokenData($_POST['credId']); |
|
38 | + Auth\ProcessingChain::resumeProcessing($state); |
|
39 | + break; |
|
40 | + default: |
|
41 | + throw new Exception("Unknown submit button state."); |
|
42 | 42 | } |
43 | 43 |
@@ -106,8 +106,8 @@ |
||
106 | 106 | { |
107 | 107 | $path = SSPConfig::getConfigDir().'/'.self::AAGUID_CONFIG_FILE; |
108 | 108 | if (!file_exists($path)) { |
109 | - Logger::warning('Missing "webauthn_tokens.json" configuration file. No device will be recognized.'); |
|
110 | - return []; |
|
109 | + Logger::warning('Missing "webauthn_tokens.json" configuration file. No device will be recognized.'); |
|
110 | + return []; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | $data = file_get_contents($path); |