pleroma-fe/src/components/user_settings/mfa_backup_codes.vue

34 lines
775 B
Vue
Raw Normal View History

<template>
2019-07-05 17:17:44 +10:00
<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">
2019-07-07 07:54:17 +10:00
<li
v-for="code in backupCodes.codes"
:key="code"
>
2019-07-05 17:17:44 +10:00
{{ 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>