From 85ac73efccbb27ab2a647f57870cc2764935956c Mon Sep 17 00:00:00 2001 From: Rafi Date: Mon, 20 Mar 2023 22:03:53 +0800 Subject: [PATCH] Add email verification requirement judgment after completing registration --- pages/account/onboarding.vue | 44 +++++++++++++++++++++--------------- pages/account/signup.vue | 2 +- 2 files changed, 27 insertions(+), 19 deletions(-) diff --git a/pages/account/onboarding.vue b/pages/account/onboarding.vue index cf34e02..3e84952 100644 --- a/pages/account/onboarding.vue +++ b/pages/account/onboarding.vue @@ -45,24 +45,32 @@ onNuxtReady(() => { elevation="0" >
-

Verify your email

-

- We've sent a verification email to {{ $auth.user.email }}.
- Please check your inbox and click the link to verify your email address. -

-

{{ errorMsg }}

- - {{ resent ? 'Resent' : 'Resend email'}} - +
+

Your registration is successful

+

+ You can now login to your account. +

+
+
+

Verify your email

+

+ We've sent a verification email to {{ $auth.user.email }}.
+ Please check your inbox and click the link to verify your email address. +

+

{{ errorMsg }}

+ + {{ resent ? 'Resent' : 'Resend email'}} + +
diff --git a/pages/account/signup.vue b/pages/account/signup.vue index 86dd089..1b2a6c0 100644 --- a/pages/account/signup.vue +++ b/pages/account/signup.vue @@ -75,7 +75,7 @@ const submit = async () => { } } else { $auth.setUser(data.value.user) - navigateTo('/account/onboarding') + navigateTo('/account/onboarding?email_verification_required='+data.value.email_verification_required) } submitting.value = false