Fill fields in login, forgotPassword and resetPassword from url (#10291)

This commit is contained in:
Vishesh 2025-02-13 19:07:08 +05:30 committed by GitHub
parent 42a77c7646
commit 8e1f5b1e49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View File

@ -129,7 +129,9 @@ export default {
initForm () { initForm () {
this.formRef = ref() this.formRef = ref()
this.form = reactive({ 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 = { this.rules = {
username: [{ username: [{

View File

@ -253,7 +253,9 @@ export default {
initForm () { initForm () {
this.formRef = ref() this.formRef = ref()
this.form = reactive({ 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.rules = reactive({})
this.setRules() this.setRules()

View File

@ -157,6 +157,7 @@ export default {
this.form = reactive({ this.form = reactive({
server: (this.server.apiHost || '') + this.server.apiBase, server: (this.server.apiHost || '') + this.server.apiBase,
username: this.$route.query?.username || '', username: this.$route.query?.username || '',
domain: this.$route.query?.domain || '',
token: this.$route.query?.token || '' token: this.$route.query?.token || ''
}) })
this.rules = { this.rules = {