From 6da828f4130a90d76cfde5746b83a69bffb3930d Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 19 Dec 2024 17:57:21 +0200 Subject: [PATCH] Update signup page --- client/src/services/userService.js | 10 +++ client/src/views/Signup.vue | 111 +++++++++-------------------- 2 files changed, 44 insertions(+), 77 deletions(-) diff --git a/client/src/services/userService.js b/client/src/services/userService.js index 3763346a..83661fc0 100644 --- a/client/src/services/userService.js +++ b/client/src/services/userService.js @@ -32,6 +32,16 @@ export default { return await authClient().get("/user"); }, + async signUp(first_name, last_name, email, password, confirm_password) { + return await baseClient().post("/user/signup", { + first_name, + last_name, + email, + password, + confirm_password, + }); + }, + async activateVoucher(voucher) { await this.refresh_token(); return await authClient().put("/user/activate_voucher", { voucher }); diff --git a/client/src/views/Signup.vue b/client/src/views/Signup.vue index 85a69497..1b2b2f97 100644 --- a/client/src/views/Signup.vue +++ b/client/src/views/Signup.vue @@ -3,7 +3,7 @@ - + @@ -18,7 +18,7 @@ create account - + @@ -66,31 +66,10 @@ :type="cShowPassword ? 'text' : 'password'" v-model="cPassword" label="Confirm Password" - :rules="passwordRules" + :rules="cPasswordRules" @click:append-inner="cShowPassword = !cShowPassword" /> - - - - - - - - @@ -100,10 +79,12 @@

@@ -116,23 +97,26 @@ +