Skip to content

Commit

Permalink
Merge pull request #42 from auguzsto/fix-required-form-signin
Browse files Browse the repository at this point in the history
fix: required  form signup
  • Loading branch information
BernardoSM committed Feb 8, 2024
2 parents e73de8a + 2688e06 commit 69d10bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions apps/app/pages/sign-up.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ async function clerkOAuth(strategy) {
@click="clerkOAuth('oauth_google')"
/>
</div>
<MForm>
<MForm @submit="createAccount()">
<MTextField
class="mb-4"
label="Email"
type="email"
required
v-model="email"
:rules="['email']"
/>
Expand All @@ -98,14 +99,15 @@ async function clerkOAuth(strategy) {
label="Senha"
type="password"
v-model="password"
required
:rules="['password']"
/>
<MButton
variant="secondary"
class="mb-4 w-full"
text="Criar conta"
icon-right="arrow-right"
@click="createAccount()"
type="submit"
:loading="loading"
/>
</MForm>
Expand Down
4 changes: 2 additions & 2 deletions apps/app/stores/clerk/signUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 69d10bf

Please sign in to comment.