Skip to content

Commit 7048472

Browse files
committed
fix "Can't change username/password in web UI #6"
1 parent badb672 commit 7048472

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

components/utils/initialization.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ esp_err_t IRAM_ATTR parms_init()
4545
get_config_param_str("ap_ip", &ap_ip);
4646
get_config_param_str("auth_username", &authUsername);
4747
// get_config_param_str("mac_ap", &macAp);
48-
get_config_param_str("auth_username", &authPass);
48+
get_config_param_str("auth_password", &authPass);
4949

5050
get_config_param_int("web_server", &webServer);
5151
get_config_param_int("led_enable", &ledEnable);

components/web_server/storage_handler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ esp_err_t save_settings_data_handler(httpd_req_t *req)
133133
}
134134
}
135135

136-
if (httpd_query_key_value(query_buf, "authUsername", param_buf, sizeof(param_buf)) == ESP_OK)
136+
if (httpd_query_key_value(query_buf, "adminUsername", param_buf, sizeof(param_buf)) == ESP_OK)
137137
{
138138
authUsername = html_escape(strdup(param_buf));
139139
err = nvs_set_str(handle, "auth_username", authUsername);
140140
}
141-
if (httpd_query_key_value(query_buf, "authPassword", param_buf, sizeof(param_buf)) == ESP_OK)
141+
if (httpd_query_key_value(query_buf, "adminPassword", param_buf, sizeof(param_buf)) == ESP_OK)
142142
{
143143
authPass = html_escape(strdup(param_buf));
144-
err = nvs_set_str(handle, "auth_username", authPass);
144+
err = nvs_set_str(handle, "auth_password", authPass);
145145
}
146146

147147
if (httpd_query_key_value(query_buf, "maxLoginAttempts", param_buf, sizeof(param_buf)) == ESP_OK)

components/web_server/www/html/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ GEM
1111
http_parser.rb (~> 0)
1212
eventmachine (1.2.7)
1313
execjs (2.8.1)
14-
ffi (1.15.5-x64-mingw-ucrt)
14+
ffi (1.15.5)
1515
forwardable-extended (2.6.0)
16-
google-protobuf (3.21.12-x64-mingw-ucrt)
16+
google-protobuf (3.24.2-x64-mingw-ucrt)
1717
htmlbeautifier (1.4.2)
1818
htmlcompressor (0.4.0)
1919
http_parser.rb (0.8.0)

components/web_server/www/html/js/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
---
3-
var version="1.1.2",
3+
var version="1.1.3",
44
sL = getE('spinner-container'),
55
notification = getE("notification"),
66
themeColor = getComputedStyle(document.body),
0 Bytes
Binary file not shown.

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
[extra_script_settings]
13-
version = 1.1.2 ; Set the version to the project
13+
version = 1.1.3 ; Set the version to the project
1414
merge_to_single_bin = 1 ; (0 = disable) Enable the conversion of a multiple bins to single bin file of 0x0 format
1515

1616

0 commit comments

Comments
 (0)