How can a client be authenticated and when he disconnects he has to re-enter the password.
And if you put the route in the browser on page 2 do not access it if you have not gone through the access page.
Actually the login works correctly for me, but if I put the full path of page 2, it also serves me without any password.
For example:
webServer.on ("/ loginconfig.php", [] ()
{
if (webServer.args ()> 0 && webServer.arg (0) == "password")
{
webServer.send (200, "text / html", PASSOK);
}
else
{
webServer.send (200, "text / html", ERRORPASS);
}
I have searched but I do not see anything clear or simple to implement.
Greetings and thank you