Skip to content
4 changes: 3 additions & 1 deletion ui/src/views/dashboard/SetupTwoFaAtLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@
<a-row :gutter="24">
<a-col :md="24" :lg="22">
<a-form-item @finish="submitPin" v-ctrl-enter="submitPin" name="code" ref="code">
<a-input-password
<a-input
v-model:value="form.code"
autocomplete="one-time-code"
inputmode="numeric"
placeholder="xxxxxx" />
</a-form-item>
</a-col>
Expand Down
6 changes: 4 additions & 2 deletions ui/src/views/dashboard/VerifyTwoFa.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
@finish="handleSubmit"
layout="vertical">
<a-form-item name="code" ref="code" style="text-align: center;">
<a-input-password
<a-input
style="width: 500px"
v-model:value="form.code"
autocomplete="one-time-code"
inputmode="numeric"
placeholder="xxxxxx" />
Comment thread
daviftorres marked this conversation as resolved.
</a-form-item>
<br/>
Expand Down Expand Up @@ -83,7 +85,7 @@ export default {
})
},
focusInput () {
const inputElement = this.$refs.code.$el.querySelector('input[type=password]')
const inputElement = this.$refs.code.$el.querySelector('input')
if (inputElement) {
inputElement.focus()
}
Expand Down
4 changes: 3 additions & 1 deletion ui/src/views/iam/SetupTwoFaAtUserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@
<a-row :gutter="12">
<a-col :md="24" :lg="20">
<a-form-item @finish="submitPin" v-ctrl-enter="submitPin" name="code" ref="code">
<a-input-password
<a-input
v-model:value="form.code"
autocomplete="one-time-code"
inputmode="numeric"
placeholder="xxxxxx" />
</a-form-item>
</a-col>
Expand Down