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 3ac0946019
commit af3f36f063
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

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