Problem with login/pwd with ESP8266 WebServer

Hello,

i am a beginner, i have made the 5th first tuto on Project DIY :

https://diyprojects.io/esp8266-web-server-part-5-add-google-charts-gauges-and-charts/

Almost all working fine with sensors and web interface and i want to put an simple authentification with login/password to access but the simple exemples i try doesn't work.

I attached my sketch below, if someone could give me a little help please.

Thanks

Part5_DHT22WebserverESP8266_SPIFFS.ino (11.7 KB)

but the simple exemples i try doesn't work.

They do something. You expect something. All that you have managed to tell us is that the two somethings are not the same thing.

I attached my sketch below

That code does something that you failed to describe. You want it to do something else. "i want to put an simple authentification with login/password to access" isn't a good requirement statement.

thanks for your response,

sorry my English is not very good,

you are right i expected to have a secure connexion to my web page, that all.

Secure it means i enter a logon + password, so that anybody can acces and activate sensor instead of me lol

May you help please?

If i am enought clear for you about what i expect to have a secure connexion to my web page