@@ -15,8 +15,11 @@ discard block |
||
15 | 15 | <?php foreach($this->data['FIDO2Tokens'] as $index => $this->data['token']): ?> |
16 | 16 | <?php if($this->data['FIDO2AuthSuccessful'] == false or $this->data['FIDO2AuthSuccessful'] != $this->data['token'][0]): ?> |
17 | 17 | <li class='othertoken'><?php echo htmlspecialchars($this->data['token'][3]); ?></li> |
18 | - <?php else: ?> |
|
19 | - <li class='currenttoken'><?php echo htmlspecialchars($this->data['token'][3]); ?> <?php echo htmlspecialchars($this->t('{webauthn:webauthn:currentToken}')); ?></li> |
|
18 | + <?php else { |
|
19 | + : ?> |
|
20 | + <li class='currenttoken'><?php echo htmlspecialchars($this->data['token'][3]); |
|
21 | +} |
|
22 | +?> <?php echo htmlspecialchars($this->t('{webauthn:webauthn:currentToken}')); ?></li> |
|
20 | 23 | <?php endif; ?> |
21 | 24 | <?php endforeach;?> |
22 | 25 | </ul> |
@@ -65,8 +68,11 @@ discard block |
||
65 | 68 | <input type='hidden' id='operation' name='operation' value='AUTH'/> |
66 | 69 | <input type='checkbox' id='credentialChange' name='credentialChange'><?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): ?> |
67 | 70 | <?php echo htmlspecialchars($this->t('{webauthn:webauthn:wantsAdd}')); ?> |
68 | - <?php else: ?> |
|
69 | - <?php echo htmlspecialchars($this->t('{webauthn:webauthn:wantsModification}')); ?> |
|
71 | + <?php else { |
|
72 | + : ?> |
|
73 | + <?php echo htmlspecialchars($this->t('{webauthn:webauthn:wantsModification}')); |
|
74 | +} |
|
75 | +?> |
|
70 | 76 | <?php endif; ?></input><br/> |
71 | 77 | <button type='button' id='authformSubmit'><?php echo htmlspecialchars($this->t('{webauthn:webauthn:authTokenButton}')); ?></button> |
72 | 78 | </form> |