From d21daa1a67d523db653f2a92ca0914cde09cba3c Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 28 Apr 2022 13:25:21 +0800 Subject: [PATCH] update signup page --- .../forms/RegistrationFormComponent.vue | 20 ++++++++++--------- resources/assets/vue/general/mixins/guards.js | 2 +- .../views/pages/accounts/login.blade.php | 2 +- routes/web.php | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue b/resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue index e436960a..429d0b9a 100644 --- a/resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue +++ b/resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue @@ -121,16 +121,18 @@
diff --git a/resources/assets/vue/general/mixins/guards.js b/resources/assets/vue/general/mixins/guards.js index 3b39baad..3e5aaea5 100644 --- a/resources/assets/vue/general/mixins/guards.js +++ b/resources/assets/vue/general/mixins/guards.js @@ -5,7 +5,7 @@ export default { (this.$store.getters.isAuthenticated && !this.isProtectedRoute()&& !this.isWithTokenRoute()) ? window.location.href = this.route('dashboard') : ''; }, isProtectedRoute(){ - const unprotectedRoutes = [this.route('login'), this.route('account.email.verification')]; + const unprotectedRoutes = [this.route('login'), this.route('signup'), this.route('account.email.verification')]; return !unprotectedRoutes.includes(window.location.href); }, isWithTokenRoute(){ diff --git a/resources/views/pages/accounts/login.blade.php b/resources/views/pages/accounts/login.blade.php index a6ab237c..990eb4cc 100644 --- a/resources/views/pages/accounts/login.blade.php +++ b/resources/views/pages/accounts/login.blade.php @@ -64,7 +64,7 @@ diff --git a/routes/web.php b/routes/web.php index db16a917..dafe7a1f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -32,7 +32,7 @@ Route::get('', function () { Route::get('/signup', function () { return view('pages.accounts.sign_up'); -})->name('sign_up'); +})->name('signup'); Route::get('/account/email/verification/{token}', function ($token) { return view('pages.accounts.email_verified', ['token' => $token]);