[GH-ISSUE #1203] WiFi Password field asterisks #1026

Closed
opened 2026-02-28 01:28:10 +03:00 by kerem · 21 comments
Owner

Originally created by @OldGreyCells on GitHub (Feb 3, 2021).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1203

WiFi password field 'placeholder' causes confusion

Hardware

WiFimanager Branch/Release: Development (I have tested this on master as dev was merged into master yesterday: https://github.com/tzapu/WiFiManager/issues/500)

Esp8266/Esp32: Esp8266

Hardware: ESP-12e, D1 Mini

Core Version: 2.4.0, staging

Description

If _showPassword is false the S_passph is displayed in the WiFI password input, even if a password is not set. This causes a level of confusion because it looks like the field has already been completed. ie user saves the WiFi settings but the connection fails even though it looks like there is a password entered.

I humbly suggest the S_passph should only be used if WiFi_psk() is not empty?

Settings in IDE

Module: NodeMcu, Wemos D1

Additional libraries: None

Originally created by @OldGreyCells on GitHub (Feb 3, 2021). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1203 ### WiFi password field 'placeholder' causes confusion #### Hardware WiFimanager Branch/Release: Development (I have tested this on master as dev was merged into master yesterday: https://github.com/tzapu/WiFiManager/issues/500) Esp8266/Esp32: Esp8266 Hardware: ESP-12e, D1 Mini Core Version: 2.4.0, staging ### Description If _showPassword is false the S_passph is displayed in the WiFI password input, even if a password is not set. This causes a level of confusion because it looks like the field has already been completed. ie user saves the WiFi settings but the connection fails even though it looks like there is a password entered. I humbly suggest the S_passph should only be used if WiFi_psk() is not empty? ### Settings in IDE Module: NodeMcu, Wemos D1 Additional libraries: None
kerem 2026-02-28 01:28:10 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tablatronix commented on GitHub (Feb 3, 2021):

true but you also do not have to resave wifi everytime anymore if its already saved.
Alternatively, We can reuse same password if empty and ssid is not, or we can find another way to indicate this is saved

Also placeholders should hot show the same as input text, is this not obvious ?

<!-- gh-comment-id:772566057 --> @tablatronix commented on GitHub (Feb 3, 2021): true but you also do not have to resave wifi everytime anymore if its already saved. Alternatively, We can reuse same password if empty and ssid is not, or we can find another way to indicate this is saved Also placeholders should hot show the same as input text, is this not obvious ?
Author
Owner

@tablatronix commented on GitHub (Feb 3, 2021):

Maybe disable the inputs and you have to click change or something ?

S_passph should not show if psk is empty already.. hmm

<!-- gh-comment-id:772567735 --> @tablatronix commented on GitHub (Feb 3, 2021): Maybe disable the inputs and you have to click change or something ? S_passph should not show if psk is empty already.. hmm
Author
Owner

@tablatronix commented on GitHub (Feb 3, 2021):

There seems to be 3 bugs here
working on them now

<!-- gh-comment-id:772576811 --> @tablatronix commented on GitHub (Feb 3, 2021): There seems to be 3 bugs here working on them now
Author
Owner

@tablatronix commented on GitHub (Feb 3, 2021):

hmm issue comment triggers are not working

e933a20d20

<!-- gh-comment-id:772620397 --> @tablatronix commented on GitHub (Feb 3, 2021): hmm issue comment triggers are not working e933a20d20b6bc636053f811810bdf924d3c2b73
Author
Owner

@tablatronix commented on GitHub (Feb 3, 2021):

I fixed the **** when no psk saved
I also fixed the ssid showing blank if connect failed, also the status showing no ap set even if there is one

Give that a try, see if it makes more sense

Screen Shot 2021-02-03 at 10 08 03 AM

<!-- gh-comment-id:772621601 --> @tablatronix commented on GitHub (Feb 3, 2021): I fixed the **** when no psk saved I also fixed the ssid showing blank if connect failed, also the status showing no ap set even if there is one Give that a try, see if it makes more sense ![Screen Shot 2021-02-03 at 10 08 03 AM](https://user-images.githubusercontent.com/807787/106774462-bf95c580-6607-11eb-8130-41376809e79c.png)
Author
Owner

@OldGreyCells commented on GitHub (Feb 5, 2021):

Apologies for the tardy response time - been 'under the weather'...
I'll test as soon as I can get platformio to pull the latest version - or failing that, I'll just copy the .cpp across.
Many thanks - much appreciated.

<!-- gh-comment-id:774011632 --> @OldGreyCells commented on GitHub (Feb 5, 2021): Apologies for the tardy response time - been 'under the weather'... I'll test as soon as I can get platformio to pull the latest version - or failing that, I'll just copy the .cpp across. Many thanks - much appreciated.
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

np, thanks so much for creating an issue and finding that

<!-- gh-comment-id:774020948 --> @tablatronix commented on GitHub (Feb 5, 2021): np, thanks so much for creating an issue and finding that
Author
Owner

@OldGreyCells commented on GitHub (Feb 5, 2021):

OK, tested and works great. There is a little usability issue when re-entering the portal if already holding a valid WiFi connection as the SSID and password are blank - should perhaps be filled? Not part of this issue and quite a trivial thing but happy to raise another issue if you'd like.
Many thanks for your work (and patience!)

<!-- gh-comment-id:774043632 --> @OldGreyCells commented on GitHub (Feb 5, 2021): OK, tested and works great. There is a little usability issue when re-entering the portal if already holding a valid WiFi connection as the SSID and password are blank - should perhaps be filled? Not part of this issue and quite a trivial thing but happy to raise another issue if you'd like. Many thanks for your work (and patience!)
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

hmm, do you mean the placeholders are still blank ?

Are you on esp8266 or esp32?

<!-- gh-comment-id:774131920 --> @tablatronix commented on GitHub (Feb 5, 2021): hmm, do you mean the placeholders are still blank ? Are you on esp8266 or esp32?
Author
Owner

@OldGreyCells commented on GitHub (Feb 5, 2021):

I'm on an esp8266 - when initiating the portal on an erased flash, the SSID and password are blank as expected but if you set them, get connected to your regular router (or not), if you re-enter the portal, both fields are blank. This is not a big issue, (provided you don't touch the list of available APs because the stored SSID/psk aren't updated if the fields are empty) it is just not necessarily what a user would expect.

<!-- gh-comment-id:774209561 --> @OldGreyCells commented on GitHub (Feb 5, 2021): I'm on an esp8266 - when initiating the portal on an erased flash, the SSID and password are blank as expected but if you set them, get connected to your regular router (or not), if you re-enter the portal, both fields are blank. This is not a big issue, (provided you don't touch the list of available APs because the stored SSID/psk aren't updated if the fields are empty) it is just not necessarily what a user would expect.
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

ok , looks like I only tested on esp32, will fix, must be a bug on esp8266

<!-- gh-comment-id:774216530 --> @tablatronix commented on GitHub (Feb 5, 2021): ok , looks like I only tested on esp32, will fix, must be a bug on esp8266
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

Nope works fine for me same as screenshot above..
Let me try on same lan

<!-- gh-comment-id:774217976 --> @tablatronix commented on GitHub (Feb 5, 2021): Nope works fine for me same as screenshot above.. Let me try on same lan
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

Works fine here, esp8266 with showpass on and off
Screen Shot 2021-02-05 at 12 51 41 PM
Screen Shot 2021-02-05 at 12 54 56 PM

<!-- gh-comment-id:774221626 --> @tablatronix commented on GitHub (Feb 5, 2021): Works fine here, esp8266 with showpass on and off <img width="350" alt="Screen Shot 2021-02-05 at 12 51 41 PM" src="https://user-images.githubusercontent.com/807787/107076354-f1965b80-67b0-11eb-8003-3d74f5f17c5d.png"> <img width="328" alt="Screen Shot 2021-02-05 at 12 54 56 PM" src="https://user-images.githubusercontent.com/807787/107076675-5ea9f100-67b1-11eb-800d-e31db4765cf7.png">
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

Maybe make sure you pulled latest commits in, maybe I fixed something after that one above

<!-- gh-comment-id:774223639 --> @tablatronix commented on GitHub (Feb 5, 2021): Maybe make sure you pulled latest commits in, maybe I fixed something after that one above
Author
Owner

@OldGreyCells commented on GitHub (Feb 5, 2021):

Hmmm... I'll check again.

<!-- gh-comment-id:774249025 --> @OldGreyCells commented on GitHub (Feb 5, 2021): Hmmm... I'll check again.
Author
Owner

@OldGreyCells commented on GitHub (Feb 5, 2021):

My apologies for taking up your time - my test sketch (the OnDemandWebPortal) works now I've manually copied the latest pull across. I'm still getting used to platformio using separate libraries for each sketch and not sure how to force it update to the the latest master - I have to create a new project with lib_deps = https://github.com/tzapu/WiFiManager.git#master and copy it across to the original sketch.
All the best

<!-- gh-comment-id:774258346 --> @OldGreyCells commented on GitHub (Feb 5, 2021): My apologies for taking up your time - my test sketch (the OnDemandWebPortal) works now I've manually copied the latest pull across. I'm still getting used to platformio using separate libraries for each sketch and not sure how to force it update to the the latest master - I have to create a new project with lib_deps = https://github.com/tzapu/WiFiManager.git#master and copy it across to the original sketch. All the best
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

ahh I see
lib_deps

https://docs.platformio.org/en/latest/projectconf/section_env_library.html#lib-deps

Personally I use extra_lib_dir and git pull my own stuff for experimental or cutting edge libs

<!-- gh-comment-id:774260667 --> @tablatronix commented on GitHub (Feb 5, 2021): ahh I see lib_deps https://docs.platformio.org/en/latest/projectconf/section_env_library.html#lib-deps Personally I use extra_lib_dir and git pull my own stuff for experimental or cutting edge libs
Author
Owner

@OldGreyCells commented on GitHub (Feb 5, 2021):

Thanks for the tip - it's a bit of a learning curve - made more so as C++ is not my first (second, or even third) language!

<!-- gh-comment-id:774280867 --> @OldGreyCells commented on GitHub (Feb 5, 2021): Thanks for the tip - it's a bit of a learning curve - made more so as C++ is not my first (second, or even third) language!
Author
Owner

@tablatronix commented on GitHub (Feb 5, 2021):

Yeah I tend to not use pio as projects, and I use it more like arduino and have all libraries in the same place, it can be annoying like that

<!-- gh-comment-id:774295200 --> @tablatronix commented on GitHub (Feb 5, 2021): Yeah I tend to not use pio as projects, and I use it more like arduino and have all libraries in the same place, it can be annoying like that
Author
Owner

@OldGreyCells commented on GitHub (Feb 16, 2021):

Apologies for the absence - I tested positive for Covid, so am not entirely with it! (not that I ever am)

<!-- gh-comment-id:779800839 --> @OldGreyCells commented on GitHub (Feb 16, 2021): Apologies for the absence - I tested positive for Covid, so am not entirely with it! (not that I ever am)
Author
Owner

@tablatronix commented on GitHub (Feb 16, 2021):

oof sorry to hear, Best wishes with that

<!-- gh-comment-id:779901136 --> @tablatronix commented on GitHub (Feb 16, 2021): oof sorry to hear, Best wishes with that
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#1026
No description provided.