Skip to content

Commit b29b5e8

Browse files
committed
fix(csrf): Require auth user and pass to be changed
1 parent 5f74e65 commit b29b5e8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

libraries/Update/examples/OTAWebUpdater/OTAWebUpdater.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
#define SSID_FORMAT "ESP32-%06lX" // 12 chars total
99
//#define PASSWORD "test123456" // generate if remarked
10-
const char * authUser = "admin";
11-
const char * authPass = "admin";
10+
11+
// Set the username and password for firmware upload
12+
const char * authUser = "........";
13+
const char * authPass = "........";
1214

1315
WebServer server(80);
1416
Ticker tkSecond;

libraries/WebServer/examples/WebUpdate/WebUpdate.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
const char *host = "esp32-webupdate";
1212
const char *ssid = "........";
1313
const char *password = "........";
14-
const char * authUser = "admin";
15-
const char * authPass = "admin";
14+
15+
// Set the username and password for firmware upload
16+
const char * authUser = "........";
17+
const char * authPass = "........";
1618

1719
WebServer server(80);
1820
const char *serverIndex =

0 commit comments

Comments
 (0)