Hide security key section if TOTP is disabled

This should prevent some unintended behavior (and 500 errors) for now.
This commit is contained in:
Essem 2023-05-24 14:40:11 -05:00
parent 5e2adc9ad8
commit a974ce73ce

View File

@ -10,7 +10,7 @@
<MkButton @click="unregister">{{ i18n.ts.unregister }}</MkButton>
</template>
<template v-if="supportsCredentials">
<template v-if="supportsCredentials && $i.twoFactorEnabled">
<hr class="totp-method-sep" />
<h2 class="heading">{{ i18n.ts.securityKey }}</h2>