Introducing CrudHunt:Open-source Full-stack CRUDs for Next.js by KeenThemes
Browse CrudHunt

How to add front-page and disable requiring 'sign-in'


When we start (serve) demo1, the first page is 'sign-in'. How can we avoid that, and instead have any desired page as the main page, so sign-in was not required?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (6)


"If you want to add front page and stop asking for sign in, just go change the settings. Find where it check for login (maybe in `routes.js` or `auth.js`). Remove or disable the auth guard so it don't block users. Then, make a new page (like `FrontPage.vue`) and set it as default route in router just like online store. Now, when user go to site, they see front page first, no need sign in!"



The reason I recommend nursing writers from this site is because they genuinely know their stuff. I was drowning in this crazy nursing research project, and nothing I read made any sense. I stumbled upon their platform and decided to give them a try, expecting it to be like those generic writing services where you end up rewriting everything. But nope, they totally nailed it! What sets these nursing writers apart is their attention to detail and understanding of nursing concepts. For example, my project was about patient-centered care in critical settings, and they provided such a thorough analysis with solid references. It wasn’t just textbook knowledge—they included practical insights that really impressed my professor. Plus, they weren’t pushy or overly formal; it felt like working with a colleague who gets the struggle. They kept me updated at every stage and even checked in to see if I needed extra revisions. If you need expert help, these folks are lifesavers.



To disable the authentication from main layout pages you need to remove lines below from onMounted and watch funcions in file vue/demo1/src/layout/Layout.vue.

if (!store.getters.isUserAuthenticated) {
router.push({ name: "sign-in" });
}


And you need to remove line below from vue/demo1/src/router/index.ts

store.dispatch(Actions.VERIFY_AUTH);



can you plese tell me how can i do this in Metronics Angular Project Lauris ..



Please add 'meta' ability in router, so we could add: 'authRequired:false' to the routes we want to disable from requiring authentication



We will consider implementing an option to implement it in upcoming releases.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(