@@ -16,8 +16,11 @@ discard block |
||
16 | 16 | <?php foreach($this->data['FIDO2Tokens'] as $index => $this->data['token']): ?> |
17 | 17 | <?php if($this->data['FIDO2AuthSuccessful'] == false or $this->data['FIDO2AuthSuccessful'] != $this->data['token'][0]): ?> |
18 | 18 | <li class='othertoken'><?php echo htmlspecialchars($this->data['token'][3]); ?></li> |
19 | - <?php else: ?> |
|
20 | - <li class='currenttoken'><?php echo htmlspecialchars($this->data['token'][3]); ?> <?php echo htmlspecialchars($this->t('{webauthn:webauthn:currentToken}')); ?></li> |
|
19 | + <?php else { |
|
20 | + : ?> |
|
21 | + <li class='currenttoken'><?php echo htmlspecialchars($this->data['token'][3]); |
|
22 | +} |
|
23 | +?> <?php echo htmlspecialchars($this->t('{webauthn:webauthn:currentToken}')); ?></li> |
|
21 | 24 | <?php endif; ?> |
22 | 25 | <?php endforeach;?> |
23 | 26 | </ul> |
@@ -69,8 +72,11 @@ discard block |
||
69 | 72 | <label for='credentialChange'> |
70 | 73 | <?php if((isset($this->data['FIDO2Tokens'])?((is_array($this->data['FIDO2Tokens']) || $this->data['FIDO2Tokens'] instanceof Countable)?count($this->data['FIDO2Tokens']):strlen($this->data['FIDO2Tokens'])):0) < 2): ?> |
71 | 74 | <?php echo htmlspecialchars($this->t('{webauthn:webauthn:wantsAdd}')); ?> |
72 | - <?php else: ?> |
|
73 | - <?php echo htmlspecialchars($this->t('{webauthn:webauthn:wantsModification}')); ?> |
|
75 | + <?php else { |
|
76 | + : ?> |
|
77 | + <?php echo htmlspecialchars($this->t('{webauthn:webauthn:wantsModification}')); |
|
78 | +} |
|
79 | +?> |
|
74 | 80 | <?php endif; ?> |
75 | 81 | </label><br/> |
76 | 82 | <button type='button' id='authformSubmit'><?php echo htmlspecialchars($this->t('{webauthn:webauthn:authTokenButton}')); ?></button> |
@@ -18,8 +18,11 @@ |
||
18 | 18 | <input type='hidden' id='operation' name='operation' value='AUTH'/> |
19 | 19 | <button type='button' id='authformSubmit'><?php echo htmlspecialchars($this->t('{webauthn:webauthn:authTokenButton}')); ?></button> |
20 | 20 | </form> |
21 | - <?php else: ?> |
|
22 | - <p>Please first register your token on the <a href="<?php echo htmlspecialchars(SimpleSAML\Module::getModuleURL('webauthn/registration.php')); ?>">registration page</a> before continuing. |
|
21 | + <?php else { |
|
22 | + : ?> |
|
23 | + <p>Please first register your token on the <a href="<?php echo htmlspecialchars(SimpleSAML\Module::getModuleURL('webauthn/registration.php')); |
|
24 | +} |
|
25 | +?>">registration page</a> before continuing. |
|
23 | 26 | <?php endif; ?> |
24 | 27 | <script src="<?php echo htmlspecialchars(SimpleSAML\Module::getModuleUrl('webauthn/')); ?>assets/js/webauthn.js"></script> |
25 | 28 | <script src="<?php echo htmlspecialchars(SimpleSAML\Module::getModuleUrl('webauthn/')); ?>assets/js/authentication.js"></script> |