@@ -20,18 +20,18 @@ |
||
20 | 20 | throw new Exception("Attempt to access the token management page unauthenticated."); |
21 | 21 | } |
22 | 22 | switch ($_POST['submit']) { |
23 | - case "NEVERMIND": |
|
24 | - \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state); |
|
25 | - break; |
|
26 | - case "DELETE": |
|
27 | - if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) { |
|
28 | - throw new Exception("Attempt to delete the currently used credential despite UI preventing this."); |
|
29 | - } |
|
30 | - $store = $state['webauthn:store']; |
|
31 | - $store->deleteTokenData($_POST['credId']); |
|
32 | - \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state); |
|
33 | - break; |
|
34 | - default: |
|
35 | - throw new Exception("Unknown submit button state."); |
|
23 | + case "NEVERMIND": |
|
24 | + \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state); |
|
25 | + break; |
|
26 | + case "DELETE": |
|
27 | + if ($state['FIDO2AuthSuccessful'] == $_POST['credId']) { |
|
28 | + throw new Exception("Attempt to delete the currently used credential despite UI preventing this."); |
|
29 | + } |
|
30 | + $store = $state['webauthn:store']; |
|
31 | + $store->deleteTokenData($_POST['credId']); |
|
32 | + \SimpleSAML\Auth\ProcessingChain::resumeProcessing($state); |
|
33 | + break; |
|
34 | + default: |
|
35 | + throw new Exception("Unknown submit button state."); |
|
36 | 36 | } |
37 | 37 |