mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #638] Is it possible for user to know if ssid and password input correctly? #536
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#536
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kotran88 on GitHub (Jun 29, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/638
Hello :) I use this library well.
but want to know that on /wifisave page,
I want user to know if they enter ssid and password correctly,
for now,
when users enter ssid / password on /wifi page,
it redirect to page according to below code no matter password is correct or incorrect.
but I want to alert user if password is incorrect.
is it possible?
On connectWifi function, when connRes is 4 , it is password incorrect . I wonder it can trigger alert or alert page. and how.
server->sendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
server->sendHeader("Pragma", "no-cache");
server->sendHeader("Expires", "-1");
server->setContentLength(CONTENT_LENGTH_UNKNOWN);
server->send(200, "text/html", ""); // Empty content inhibits Content-length header so we have to close the socket ourselves.
String head = FPSTR(HTTP_HEAD);
head.replace("{v}", "Credentialsdddddd Saved");
server->sendContent(head);
server->sendContent_P(HTTP_SCRIPT);
server->sendContent_P(HTTP_STYLE);
server->sendContent_P(HTTP_HEAD_END);
server->sendContent_P(HTTP_SAVED);
server->sendContent_P(HTTP_END);
server->client().stop();
@tablatronix commented on GitHub (Jun 29, 2018):
Not at this time, exploring options
@rohitjust24idpl commented on GitHub (Feb 25, 2019):
@tzapu @tablatronix
Any update on this? Because if user enters ssid/psk incorrectly by mistake, it goes into a mode where user gets confused what to do ahead and they are not aware if they entered it correctly or not.
@tablatronix commented on GitHub (Dec 4, 2019):
#614