[GH-ISSUE #638] Is it possible for user to know if ssid and password input correctly? #536

Closed
opened 2026-02-28 01:25:45 +03:00 by kerem · 3 comments
Owner

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();

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();
kerem 2026-02-28 01:25:45 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@tablatronix commented on GitHub (Jun 29, 2018):

Not at this time, exploring options

<!-- gh-comment-id:401335270 --> @tablatronix commented on GitHub (Jun 29, 2018): Not at this time, exploring options
Author
Owner

@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.

<!-- gh-comment-id:466975709 --> @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.
Author
Owner

@tablatronix commented on GitHub (Dec 4, 2019):

#614

<!-- gh-comment-id:561461853 --> @tablatronix commented on GitHub (Dec 4, 2019): #614
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#536
No description provided.