mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 01:39:30 +02:00
Fix validation so that 8 character WiFi passwords work
This commit is contained in:
parent
980e450871
commit
5277665dd1
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ void init_webserver() {
|
|||
def_route_with_auth("/updatePassword", server, HTTP_GET, [](AsyncWebServerRequest* request) {
|
||||
if (request->hasParam("value")) {
|
||||
String value = request->getParam("value")->value();
|
||||
if (value.length() > 8) { // Check if password is within the allowable length
|
||||
if (value.length() >= 8) { // Password must be 8 characters or longer
|
||||
password = value.c_str();
|
||||
store_settings();
|
||||
request->send(200, "text/plain", "Updated successfully");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue