From dca6b0159b3bf0dae85836b795a3bd99cfee548c Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Wed, 4 Oct 2023 18:32:44 +0300 Subject: [PATCH] chore: redirect people to signup (#1561) --- frontend/src/middleware/auth/auth-guard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/middleware/auth/auth-guard.js b/frontend/src/middleware/auth/auth-guard.js index 0e9dc132c8..d9e1c310cb 100644 --- a/frontend/src/middleware/auth/auth-guard.js +++ b/frontend/src/middleware/auth/auth-guard.js @@ -12,7 +12,7 @@ function isGoingToIntegrationsPage(to) { * This middleware runs before rendering any route that has meta.auth = true * * It uses the PermissionChecker to validate if: - * - User is authenticated, and both currentTenant & currentUser exist within our store (if not, redirects to /auth/signin) + * - User is authenticated, and both currentTenant & currentUser exist within our store (if not, redirects to /auth/signup) * - Email of that user is verified (if not, redirects to /auth/email-unverified) * - User is onboarded (if not, redirects to /onboard) * - User has permissions (if not, redirects to /auth/empty-permissions) @@ -36,7 +36,7 @@ export default async function ({ to, store, router }) { ); if (!permissionChecker.isAuthenticated) { - router.push({ path: '/auth/signin' }); + router.push({ path: '/auth/signup' }); return; }