mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fill fields in login, forgotPassword and resetPassword from url (#10291)
This commit is contained in:
parent
42a77c7646
commit
8e1f5b1e49
@ -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: [{
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user