From 900e7778d9ab7c0292d16d4e60b20b837ff8781e Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Tue, 24 Sep 2024 14:04:32 -0700 Subject: [PATCH] updated users --- .../clients/web/vue3/src/composables/Users.ts | 1 + .../clients/web/vue3/src/views/Signup.vue | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/clients/web/vue3/src/composables/Users.ts b/{{cookiecutter.project_slug}}/clients/web/vue3/src/composables/Users.ts index 251b060b3..11bea6cc5 100644 --- a/{{cookiecutter.project_slug}}/clients/web/vue3/src/composables/Users.ts +++ b/{{cookiecutter.project_slug}}/clients/web/vue3/src/composables/Users.ts @@ -131,5 +131,6 @@ export function useUsers() { register, registerForm, getCodeUidFromRoute, + fillUserForm, } } diff --git a/{{cookiecutter.project_slug}}/clients/web/vue3/src/views/Signup.vue b/{{cookiecutter.project_slug}}/clients/web/vue3/src/views/Signup.vue index 32ae6e112..219a10805 100644 --- a/{{cookiecutter.project_slug}}/clients/web/vue3/src/views/Signup.vue +++ b/{{cookiecutter.project_slug}}/clients/web/vue3/src/views/Signup.vue @@ -91,6 +91,7 @@ import InputField from '@/components/inputs/InputField.vue' import { useUsers } from '@/composables/Users' import LoadingSpinner from '@/components/LoadingSpinner.vue' +import { onMounted } from 'vue' export default { name: 'Signup', @@ -99,7 +100,11 @@ export default { LoadingSpinner, }, setup() { - const { register, loading, registerForm } = useUsers() + const { register, loading, registerForm, fillUserForm } = useUsers() + + onMounted(() => { + fillUserForm() + }) return { form: registerForm,