mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-26 06:08:38 +01:00
Focus TFA input on mounted
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<v-col cols="6" offset="3">
|
||||
<label class="m-label"><translate>Two-factor authentication code</translate></label>
|
||||
<v-otp-input
|
||||
ref="otpInput"
|
||||
v-model="code"
|
||||
length="6"
|
||||
:error-messages="errors"
|
||||
@@ -52,6 +53,9 @@ export default {
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.$refs.otpInput.focus()
|
||||
},
|
||||
methods: {
|
||||
async verifyCode () {
|
||||
const isValid = await this.$refs.observer.validate()
|
||||
|
||||
Reference in New Issue
Block a user