Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change hidden password string to abide by minimum length #1045

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

michmela44
Copy link
Contributor

For editing the WebUI, we currently send a string to hide passwords of length 6, "******".

WebUI 2 doesn't warn about min length constraints, but WebUI3 does.

image

This PR adds two asterisks to abide by the hardcoded length of 8, but in reality the better fix is to use the _minLength field and make sure the fake string meets the constraints.

I tried to do this with std::string(_minLength, '*') but I couldn't get it to end up correct on the web side, so I reverted back to hard-coded. It could just be my lack of C/C++ experience, so maybe someone can change it to something more robust using _minLength.

@V1EngineeringInc
Copy link

If I am not mistaken, this is the other half of the changes needed to allow for Esp3dUI V3 with #1044.

If that gets working, it might help lighten the Dev load of FluidNC? Seems to be getting more and more widely adopted and I am seeing it getting used a lot more.

@bdring bdring merged commit 30e7bc5 into bdring:Devt Nov 11, 2023
12 checks passed
@V1EngineeringInc
Copy link

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants