pleroma-fe/src/components/user_settings/mfa_backup_codes.vue
2019-07-07 00:54:17 +03:00

33 lines
775 B
Vue

<template>
<div>
<h4 v-if="displayTitle">
{{ $t('settings.mfa.recovery_codes') }}
</h4>
<i v-if="inProgress">{{ $t('settings.mfa.waiting_a_recovery_codes') }}</i>
<template v-if="ready">
<p class="alert warning">
{{ $t('settings.mfa.recovery_codes_warning') }}
</p>
<ul class="backup-codes">
<li
v-for="code in backupCodes.codes"
:key="code"
>
{{ code }}
</li>
</ul>
</template>
</div>
</template>
<script src="./mfa_backup_codes.js"></script>
<style lang="scss">
@import '../../_variables.scss';
.warning {
color: $fallback--cOrange;
color: var(--cOrange, $fallback--cOrange);
}
.backup-codes {
font-family: var(--postCodeFont, monospace);
}
</style>