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 () { |     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: [{ | ||||||
|  | |||||||
| @ -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() | ||||||
|  | |||||||
| @ -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 = { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user