Enhanced suggestPassword() function per issue #12370#1
Open
ReverseEMF wants to merge 1 commit intoQA_4_6from
Open
Enhanced suggestPassword() function per issue #12370#1ReverseEMF wants to merge 1 commit intoQA_4_6from
ReverseEMF wants to merge 1 commit intoQA_4_6from
Conversation
To address issue phpmyadmin#12370, enhanced the suggestPassword() function and added a new function, called getRandomInt(), to support code in the suggestPassword() function. This function, now, generates passwords that comply with the mySQL Password Validation Plugin (ver 5.6 and above). It generates a 16 character password that has at least one lowercase char, at least one uppercase char, at least one numeric char and at least one "special character" (non-alphanumeric). One is not the only number--this function, with random variability, pads out these various character types to fill the 16 character space, but every password complies with the minimum constraints. This is tested and ready to go. See function comments for further information and added features.
peternewman
referenced
this pull request
Jan 7, 2022
To address issue phpmyadmin#12370, enhanced the suggestPassword() function and added a new function, called getRandomInt(), to support code in the suggestPassword() function. This function, now, generates passwords that comply with the mySQL Password Validation Plugin (ver 5.6 and above). It generates a 16 character password that has at least one lowercase char, at least one uppercase char, at least one numeric char and at least one "special character" (non-alphanumeric). One is not the only number--this function, with random variability, pads out these various character types to fill the 16 character space, but every password complies with the minimum constraints. This is tested and ready to go. See function comments for further information and added features.
|
Hi @ReverseEMF , Having just hit this issue myself, and seeing that phpmyadmin#12370 got closed without your fix being merged, I've opened phpmyadmin#17273 to track it instead. I don't know why phpmyadmin#12370 got closed without acknowledging your work, but unfortunately no-one will have ever reviewed it because you only did a Pull Request against yourself. If you open one against this branch (or similar, I don't know exactly what phpmyadmin prefer), then hopefully someone from the project will take a look at your code and it might get merged in if we're lucky. It looks like it will need a rebase at least, as they've moved the function to another file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before submitting pull request, please check that every commit:
Regarding the above, this is my first foray into the github/opensource arena, and perhaps my last. I'm a phpMyAdmin user who encountered a "bug" (euphemistically tagged as an "enhancement" even though it produces a warning message, and thus interferes with normal functioning--that in my book, is the definition of a bug), discovered that there is an "issue" for that "enhancement", and being a retired programmer, thought, what the hell, I can fix that, so I dove in. The documentation that I was herded to made this sound easy "anybody can contribute" ... "go ahead and dive in" [paraphrase]. So, here is my code. It works great. Maybe I'm not following the correct protocol, but no one else has tackled this issue (phpmyadmin#12370) so, if this can't go through the proper channels, as it is, then how about one of you take this code and call it your own and put it through the proper channels. Otherwise, someone (if this issue is ever addressed), will have to start from scratch -- so which way is more efficient?
Original comment:
To address issue phpmyadmin#12370, enhanced the suggestPassword() function and added a new function, called getRandomInt(), to support code in the suggestPassword() function.
This function, now, generates passwords that comply with the mySQL Password Validation Plugin (ver 5.6 and above). It generates a 16 character password that has at least one lowercase char, at least one uppercase char, at least one numeric char and at least one "special character" (non-alphanumeric). One is not the only number--this function, with random variability, pads out these various character types to fill the 16 character space, but every password complies with the minimum constraints.
This is tested and ready to go. See function comments for further information and added features.