-
Notifications
You must be signed in to change notification settings - Fork 17
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
admin password is limited to 126 characters #411
Comments
Update: |
Update #2: My suggestion is to validate the password field before calling passwd, and pass an error back to the user if the password is too long. |
Update #3: |
Thought we should add notes from the back and forth Grady and I had on this issue so that the exploration of this issue was captured for any future validation issues. Questions about this bug. Q: Is the password truncated in the text field? So that you can't add any more chars? Q: Is the password being rejected before the page is submitted to the back end? You can eliminate possibility of front-end issues by simply turning off javascript in your browser and testing if it is still rejected. I didn't explore front end impact because I don't have a node to do the easy tests. Q: Is an error issues to the user about a failed password entry when the password is above 126 chars? Well, I don't have a router to test here, but it looks like it is a limit by the command line passwd setter. Here are the commands used to come to that conclusion, and none of the outputs. NOTE: my current shell looks like this
While the older libraries (apps) use just views for user facing content and controllers for logic, all the interfaces that are in the setup-wizard process use the traditional structure of model (controls The luci libraries /libs/web/luasrc/cbi.lua file has all the default views model load. You can look in there to see the views used by default by model objects and therefore the javascript that those views use on the page. |
Thanks for the additional info, @elationfoundation. To answer the questions:
Basically, you can input a password as long as you want, the LuCI page accepts the submission, and no errors are ever given, giving the user reason to think everything went fine. Yet the actual password stored by the system has been truncated silently. |
My proposal to @gradyoti was to add a |
Addressed by #438 |
Closed as per #438 |
When setting a new admin password in the Basic Config menu, the password is trunctated to 126 characters. There should be no maximum password length.
The text was updated successfully, but these errors were encountered: