• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

how-to-remove-the-login-password-part-in-this-program

Q&A Forum › Category: ESP8266 › how-to-remove-the-login-password-part-in-this-program
0 Vote Up Vote Down
igli muho asked 2 years ago
Question Tags: #esp8266 #password #remove
7 Answers
-1 Vote Up Vote Down
Best Answer
igli muho answered 2 years ago

https://github.com/iglo17/esp8266.git
I want to remove the part of the code where there is login to enter the web server. I copied the program and I’m a beginner I don’t know which part to remove. thanks 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

I’m sorry.
Can you reformulate your question?
Please use Github or pastebin to share code.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
where did you copy this program from?
From which project is this program?
Are you referring to the SSID and password?
Regards,
Sara

0 Vote Up Vote Down
igli muho answered 2 years ago

I found this program on this site, but I have connection problems: the web server is very slow to load.
I wanted to try removing the part of the ssid and password to see if it is faster to load the web server.
Otherwise, do you have any other solutions to recommend?

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
To create the web server, the ESP is connected to your router so that you can access it online on the same network. So, you can’t remove the ssid and password. What board are you using? Is it relatively close to your router?
 
If you have a bad wi-fi signal, you can try to set the web server as an access point instead. It won’t require the credentials, and you’ll need to connect your computer or smartphone to the ESP32 access point directly.
 
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
igli muho answered 2 years ago

i use esp8266 and it is very close to the router but it is slow.
I don’t want to remove ssid and password to access my network, but this you see below:

this is the login after the esp8266 connects to the wifi and tells me its ip address via the serial monitor.

Start your code here
 // Checking if header is valid
// You can use this website https://www.base64decode.org/ to generate a new username and password (select the Encode tab)
// Enter with the following format: yourusername:yourpassword is encoded as eW91cnVzZXJuYW1lOnlvdXJwYXNzd29yZA==
// In this case, I've used the username user and the password pass, so the encoded string is dXNlcjpwYXNz = 'user:pass' (user:pass) base64 encode
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
You just need to remove that line and the corresponding closing bracket.

if (header.indexOf("dXNlcjpwYXNz") >= 0) {

You also need to remove this else statement

// If you enter wrong user or password, the http request fails...
else {
client.println("HTTP/1.1 401 Unauthorized");
client.println("WWW-Authenticate: Basic realm=\"Secure\"");
client.println("Content-Type: text/html");
client.println();
client.println("<html>Authentication failed</html>");
}

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.