Skip to content

Commit a0bd3c6

Browse files
fix: dont show possibility to setup webauthn if not enabled (2)
1 parent 137ff1c commit a0bd3c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpmyfaq/ucp.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@
102102
'ad_gen_no' => Translation::get('ad_gen_no'),
103103
'msgConfirmTwofactorConfig' => Translation::get('msgConfirmTwofactorConfig'),
104104
'csrfTokenRemoveTwofactor' => Token::getInstance()->getTokenString('remove-twofactor'),
105-
'msgGravatarNotConnected' => Translation::get('msgGravatarNotConnected')
105+
'msgGravatarNotConnected' => Translation::get('msgGravatarNotConnected'),
106+
'webauthnSupportEnabled' => $faqConfig->get('security.enableWebAuthnSupport')
106107
];
107108

108109
return $templateVars;

0 commit comments

Comments
 (0)