summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-01-30 13:05:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-01-30 13:05:14 +0900
commit48e9898db1650de4aa79bd67213d9fd5793934d8 (patch)
treed6e52bc959201a3ff143070ff3d1482d352d2695 /src/client
parent:art: (diff)
downloadmisskey-48e9898db1650de4aa79bd67213d9fd5793934d8.tar.gz
misskey-48e9898db1650de4aa79bd67213d9fd5793934d8.tar.bz2
misskey-48e9898db1650de4aa79bd67213d9fd5793934d8.zip
2fa setting
Diffstat (limited to 'src/client')
-rw-r--r--src/client/pages/settings/2fa.vue27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/client/pages/settings/2fa.vue b/src/client/pages/settings/2fa.vue
index 77d7b26825..116b95ab6e 100644
--- a/src/client/pages/settings/2fa.vue
+++ b/src/client/pages/settings/2fa.vue
@@ -11,26 +11,17 @@
<template v-if="supportsCredentials">
<hr class="totp-method-sep">
- <h2 class="heading">{{ $t('security-key-header') }}</h2>
- <p>{{ $t('security-key') }}</p>
+ <h2 class="heading">{{ $t('securityKey') }}</h2>
+ <p>{{ $t('_2fa.securityKeyInfo') }}</p>
<div class="key-list">
<div class="key" v-for="key in $store.state.i.securityKeysList">
- <h3>
- {{ key.name }}
- </h3>
- <div class="last-used">
- {{ $t('last-used') }}
- <mk-time :time="key.lastUsed"/>
- </div>
- <mk-button @click="unregisterKey(key)">
- {{ $t('unregister') }}
- </mk-button>
+ <h3>{{ key.name }}</h3>
+ <div class="last-used">{{ $t('lastUsed') }}<mk-time :time="key.lastUsed"/></div>
+ <mk-button @click="unregisterKey(key)">{{ $t('unregister') }}</mk-button>
</div>
</div>
- <mk-switch v-model="usePasswordLessLogin" @change="updatePasswordLessLogin" v-if="$store.state.i.securityKeysList.length > 0">
- {{ $t('use-password-less-login') }}
- </mk-switch>
+ <mk-switch v-model="usePasswordLessLogin" @change="updatePasswordLessLogin" v-if="$store.state.i.securityKeysList.length > 0">{{ $t('passwordLessLogin') }}</mk-switch>
<mk-info warn v-if="registration && registration.error">{{ $t('something-went-wrong') }} {{ registration.error }}</mk-info>
<mk-button v-if="!registration || registration.error" @click="addSecurityKey">{{ $t('register') }}</mk-button>
@@ -43,11 +34,9 @@
<li v-if="registration.stage >= 1">
<mk-form :disabled="registration.stage != 1 || registration.saving">
<mk-input v-model="keyName" :max="30">
- <span>{{ $t('security-key-name') }}</span>
+ <span>{{ $t('securityKeyName') }}</span>
</mk-input>
- <mk-button @click="registerKey" :disabled="this.keyName.length == 0">
- {{ $t('register-security-key') }}
- </mk-button>
+ <mk-button @click="registerKey" :disabled="keyName.length == 0">{{ $t('registerSecurityKey') }}</mk-button>
<fa icon="spinner" pulse fixed-width v-if="registration.saving && registration.stage == 1" />
</mk-form>
</li>