Merge branch 'chore/mfa-improvements' into 'develop'

MFA improvements

See merge request pleroma/pleroma-fe!1193
This commit is contained in:
feld 2022-04-30 20:43:20 +00:00
commit 15fbcc3104
3 changed files with 18 additions and 5 deletions

View File

@ -16,9 +16,16 @@
{{ $t('login.authentication_code') }}
</label>
<input
id="code"
v-model="code"
autocomplete="one-time-code"
autocorrect="off"
autocapitalize="off"
autofocus="true"
class="form-control"
id="totp"
name="totp"
spellcheck="false"
type="text"
v-model="code"
>
</div>

View File

@ -97,8 +97,15 @@
<h4>{{ $t('general.verify') }}</h4>
<p>{{ $t('settings.mfa.verify.desc') }}</p>
<input
v-model="otpConfirmToken"
autocomplete="one-time-code"
autocorrect="off"
autocapitalize="off"
id="totp"
name="totp"
pattern="[0-9]*"
spellcheck="false"
type="text"
v-model="otpConfirmToken"
>
<p>{{ $t('settings.enter_current_password_to_confirm') }}:</p>

View File

@ -72,7 +72,7 @@
{{ changePasswordError }}
</p>
</div>
<mfa />
<div class="setting-item">
<h2>{{ $t('settings.oauth_tokens') }}</h2>
<table class="oauth-tokens">
@ -102,7 +102,6 @@
</tbody>
</table>
</div>
<mfa />
<div class="setting-item">
<h2>{{ $t('settings.delete_account') }}</h2>
<p v-if="!deletingAccount">