diff --git a/ui/src/views/auth/ForgotPassword.vue b/ui/src/views/auth/ForgotPassword.vue index 2d45938417f..87f2d1d0c33 100644 --- a/ui/src/views/auth/ForgotPassword.vue +++ b/ui/src/views/auth/ForgotPassword.vue @@ -129,7 +129,9 @@ export default { initForm () { this.formRef = ref() this.form = reactive({ - server: (this.server.apiHost || '') + this.server.apiBase + server: (this.server.apiHost || '') + this.server.apiBase, + username: this.$route.query?.username || '', + domain: this.$route.query?.domain || '' }) this.rules = { username: [{ diff --git a/ui/src/views/auth/Login.vue b/ui/src/views/auth/Login.vue index 10963073c18..47e2f34c57e 100644 --- a/ui/src/views/auth/Login.vue +++ b/ui/src/views/auth/Login.vue @@ -253,7 +253,9 @@ export default { initForm () { this.formRef = ref() this.form = reactive({ - server: (this.server.apiHost || '') + this.server.apiBase + server: (this.server.apiHost || '') + this.server.apiBase, + username: this.$route.query?.username || '', + domain: this.$route.query?.domain || '' }) this.rules = reactive({}) this.setRules() diff --git a/ui/src/views/auth/ResetPassword.vue b/ui/src/views/auth/ResetPassword.vue index 8a9047c5d3e..0250e60008a 100644 --- a/ui/src/views/auth/ResetPassword.vue +++ b/ui/src/views/auth/ResetPassword.vue @@ -157,6 +157,7 @@ export default { this.form = reactive({ server: (this.server.apiHost || '') + this.server.apiBase, username: this.$route.query?.username || '', + domain: this.$route.query?.domain || '', token: this.$route.query?.token || '' }) this.rules = {