I’m trying to implement security on a node.js site. I’m having an issue where routing to/from the login page isn’t working properly.
My login form looks like this…
<form id="form_login" method="post" is="dmx-serverconnect-form" action="/api/Security/login" dmx-on:success="browser1.goto('/',true)" dmx-on:unauthorized="browser1.alert("Wrong login details")">
But it redirects to the content page index without the layout page. Refreshing the browser loads it properly.
Similarly, my logout button actually logs the user out, but doesn’t redirect to login. A refresh of the browser sends the user to the login page.
Any ideas what could be causing this? Routing works otherwise as far as I can tell. I have buttons that load various parts of the app and they work.
Community Page
Last updated:
Last updated: