diff --git a/src/components/Login.vue b/src/components/Login.vue index 1f8946f17..68befd415 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -16,7 +16,7 @@
- +
@@ -55,6 +55,16 @@ export default { }; }, + watch: { + tokenRequired(newVal) { + if (newVal) { + this.$nextTick(() => { + this.$refs.otpInput?.focus(); + }); + } + } + }, + mounted() { document.title += " - Login"; },