mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 06:43:08 +02:00
Better 2FA input on sign in form (#3910)
* Update signin.vue * Update ja-JP.yml * Update settings.vue * Update signin.vue * Update init.ts
This commit is contained in:
parent
4ba43b69b6
commit
d93e60d4dd
4 changed files with 9 additions and 4 deletions
|
@ -27,6 +27,7 @@ common:
|
|||
do-not-copy-paste: "ここにコードを入力したり張り付けたりしないでください。アカウントが不正利用される可能性があります。"
|
||||
load-more: "もっと読み込む"
|
||||
enter-password: "パスワードを入力してください"
|
||||
2fa: "二段階認証"
|
||||
|
||||
got-it: "わかった"
|
||||
customization-tips:
|
||||
|
@ -855,7 +856,6 @@ desktop/views/components/settings.vue:
|
|||
security: "セキュリティ"
|
||||
signin: "サインイン履歴"
|
||||
password: "パスワード"
|
||||
2fa: "二段階認証"
|
||||
other: "その他"
|
||||
license: "ライセンス"
|
||||
theme: "テーマ"
|
||||
|
|
|
@ -10,7 +10,10 @@
|
|||
<span>{{ $t('password') }}</span>
|
||||
<span slot="prefix"><fa icon="lock"/></span>
|
||||
</ui-input>
|
||||
<ui-input v-if="user && user.twoFactorEnabled" v-model="token" type="number" required styl="fill"/>
|
||||
<ui-input v-if="user && user.twoFactorEnabled" v-model="token" type="number" required styl="fill">
|
||||
<span>{{ $t('@.2fa') }}</span>
|
||||
<span slot="prefix"><fa icon="gavel"/></span>
|
||||
</ui-input>
|
||||
<ui-button type="submit" :disabled="signing">{{ signing ? $t('signing-in') : $t('signin') }}</ui-button>
|
||||
<p v-if="meta && meta.enableTwitterIntegration" style="margin: 8px 0;"><a :href="`${apiUrl}/signin/twitter`">{{ $t('signin-with-twitter') }}</a></p>
|
||||
<p v-if="meta && meta.enableGithubIntegration" style="margin: 8px 0;"><a :href="`${apiUrl}/signin/github`">{{ $t('signin-with-github') }}</a></p>
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
</ui-card>
|
||||
|
||||
<ui-card class="2fa" v-show="page == 'security'">
|
||||
<div slot="title"><fa icon="mobile-alt"/> {{ $t('2fa') }}</div>
|
||||
<div slot="title"><fa icon="mobile-alt"/> {{ $t('@.2fa') }}</div>
|
||||
<section>
|
||||
<x-2fa/>
|
||||
</section>
|
||||
|
|
|
@ -124,7 +124,8 @@ import {
|
|||
faMapMarker,
|
||||
faRobot,
|
||||
faHourglassHalf,
|
||||
faAlignLeft
|
||||
faAlignLeft,
|
||||
faGavel
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
import {
|
||||
|
@ -257,6 +258,7 @@ library.add(
|
|||
faRobot,
|
||||
faHourglassHalf,
|
||||
faAlignLeft,
|
||||
faGavel,
|
||||
|
||||
farBell,
|
||||
farEnvelope,
|
||||
|
|
Loading…
Reference in a new issue