mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #795] Parameter validation requiring web access #665
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#665
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 @Llaves on GitHub (Dec 29, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/795
This issue asks the question about validating user supplied parameters and explains how this can be done directly in the html without altering WiFiManager code. What about the case where the validation of the custom parameter requires accessing the web - e.g., validating a password? I don't see how this can be handled in the html, in part because the ESP still hasn't connected to the access point. Callback code can handle the validation, but how is the ESP switched back to act as an access point and html sent to the user device to inform the user of the validation failure?
@tablatronix commented on GitHub (Dec 30, 2018):
It can be done in non ap mode, when accessing on network.
@Llaves commented on GitHub (Dec 30, 2018):
Yes, I understand that in non-AP mode the code can access the web and validate the parameter. The part I'm unclear on is how, when returning to AP mode to access the web page sent to the user to inform them the parameter failed to validate and to re-enter the parameter. I expect others have faced this issue and I'm looking for an example or a suggestion of best practices for handling this use case.
@tablatronix commented on GitHub (Dec 30, 2018):
Yeah like i said , The only option is to use webportal mode in sta mode, no way you are going to be switching back and forth , makes no sense. This is only available in development branch.