Compare commits

...

4 Commits

Author SHA1 Message Date
Mark Felder 41ba90904d TOTP length is configurable, so we can't hardcode the length here 2020-07-17 08:20:56 -05:00
Mark Felder 26c1196a16 Add autofocus to 2FA form during login process 2020-07-16 12:54:58 -05:00
Mark Felder e242684d1a Improve totp input field: disable autocorrect etc, add hints so browsers and password managers can find it 2020-07-15 17:58:07 -05:00
Mark Felder 1be7180214 Move 2FA section above OAuth tokens
If you have a lot of tokens the 2FA section is buried at the bottom
2020-07-15 17:13:00 -05:00
3 changed files with 18 additions and 5 deletions

View File

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

View File

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

View File

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