Skip to content

Commit

Permalink
chore: redirect people to signup (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
a0m0rajab authored Oct 4, 2023
1 parent b140c2c commit dca6b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/middleware/auth/auth-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}

Expand Down

0 comments on commit dca6b01

Please sign in to comment.