From 1f7c4fd1631e2ec0fd908f87c22a9ade8aa4f439 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 5 Oct 2023 10:12:16 +0530 Subject: added registration for users --- src/views/LogIn.vue | 4 +- src/views/Register.vue | 114 ++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 92 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/views/LogIn.vue b/src/views/LogIn.vue index dc1f983..1b5f6c9 100644 --- a/src/views/LogIn.vue +++ b/src/views/LogIn.vue @@ -10,8 +10,10 @@ const toast = useToast({ const router = useRouter() +const storedEmail = sessionStorage.getItem('email') + const isLoading = ref(false) -const email = ref('') +const email = ref(storedEmail ? storedEmail : '') const password = ref('') const login = async (e) => { diff --git a/src/views/Register.vue b/src/views/Register.vue index 9c3089a..fcd124c 100644 --- a/src/views/Register.vue +++ b/src/views/Register.vue @@ -1,5 +1,56 @@