Hi,
I’m new at Wappler and I really like what I’ve tried so far. I’m trying to create a login page following the documentation. I saw that some parts of the documentation are outdated as db connection and security provider calls are not needed anymore in the APIs.
I created a login page by following the documentation:
The id and name of the different form fields do respect what I should use, specifically: username, password and remember.
E.g.:
And the form is with dynamic events following responses:
In my backend, I’ve set up a db connection and a security provider:
And finally, I have created an API as follows:
Normally, I would expect when I login:
- If user is correctly authentifed, then redirect to dashboard
- Otherwise, display the alert.
When I try within Wappler in preview mode, it works just fine! However, when I try from my browser in localhost, it does not work. More specifically, if I insert the correct credentials, it correctly identify the user by giving the id in the console BUT it does not redirect…
What did I do wrong?
Thank you!
Added note: I use NodeJS with Docker in localhost.