Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Conversation

@ProgrammerShri
Copy link
Contributor

Description

Currently If user tries to access "/index.html" route they are able to view dashboard without login.

This PR fixes this issue so that If user trying to access "/index.html" route they automatically redirect to login page without login HomeLayout is not accessible.

Changes

src/layouts

  • /HomeLayout.js : This layout for the logged in user. User can access or view only private things (Like Navbar and Dashboard etc.)
  • /PublicLayout.js : This layout is for the public (Like login, signup, forget or the thing that is not required login)

src/route

  • routes.js : This file have all the public and home layout with lazy loading, It means handling layouts and render component If required.

 A user cannot directly access  dashboard without login.
@nitisht nitisht requested a review from ameen4455 October 3, 2022 07:04
@nitisht nitisht merged commit f407ff7 into parseablehq:main Oct 3, 2022
@ProgrammerShri ProgrammerShri deleted the login-route-security branch October 3, 2022 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants