From 2688e06a5453c5737ae1d675187c9b7f85e2eeb8 Mon Sep 17 00:00:00 2001 From: Matheus Augusto Date: Wed, 31 Jan 2024 22:13:23 -0300 Subject: [PATCH] fix: required form signup --- apps/app/pages/sign-up.vue | 6 ++++-- apps/app/stores/clerk/signUp.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/app/pages/sign-up.vue b/apps/app/pages/sign-up.vue index 6c47fd9..e9cb7a3 100644 --- a/apps/app/pages/sign-up.vue +++ b/apps/app/pages/sign-up.vue @@ -85,11 +85,12 @@ async function clerkOAuth(strategy) { @click="clerkOAuth('oauth_google')" /> - + @@ -98,6 +99,7 @@ async function clerkOAuth(strategy) { label="Senha" type="password" v-model="password" + required :rules="['password']" /> diff --git a/apps/app/stores/clerk/signUp.ts b/apps/app/stores/clerk/signUp.ts index bbf13ee..f5f0236 100644 --- a/apps/app/stores/clerk/signUp.ts +++ b/apps/app/stores/clerk/signUp.ts @@ -9,8 +9,8 @@ export const useSignUpStore = defineStore("signUp", { emailAddress, password, }: { - emailAddress: string; - password: string; + emailAddress: string | null; + password: string | null; }) { this.signUp = await this.$clerk.client.signUp.create({ emailAddress,