2019-06-13 06:16:55 +10:00
|
|
|
<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">
|
|
|
|
<li v-for="code in backupCodes.codes">
|
|
|
|
{{ code }}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
</div>
|
2019-06-13 06:16:55 +10:00
|
|
|
</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>
|