bartificer / xkpasswd-js

The official JavaScript port of the Crypt::HSXKPasswd Perl module.
https://bartificer.github.io/xkpasswd-js/
BSD 2-Clause "Simplified" License
58 stars 11 forks source link

padding and separator types get confused on second generate #55

Closed podfeet closed 7 months ago

podfeet commented 8 months ago

Steps to reproduce:

It gets weirder.

hepabolu commented 8 months ago

I can confirm this.

hepabolu commented 7 months ago

@podfeet, @pricemi115 and @macLurker Before I merge this into main, could you test this code in branch issue-55 ?

podfeet commented 7 months ago

not sure what happened - all I did was click on AppleID preset

CleanShot 2024-03-09 at 13 55 24@2x

podfeet commented 7 months ago

same thing with all of the presets I tried

hepabolu commented 7 months ago

Fixed

pricemi115 commented 7 months ago

I seem to be ok, @hepabolu and I have the function mentioned in @podfeet's comment.

image

podfeet commented 7 months ago

Good thing this was such a well-documented issue 😜 - I was able to follow the tests described and confirm that the issue has been fixed.

pricemi115 commented 7 months ago

@podfeet , is your branch history exactly what Helma has in the issue-55 branch? Did you do a merge or rebase when trying to get her code and had a merge contention go sideways?

image

pricemi115 commented 7 months ago

@hepabolu - tried all of the presets and various custom settings. Seemed to work as expected

podfeet commented 7 months ago

@pricemi115 she fixed the problem before you saw it I think. it's all good now.

pricemi115 commented 7 months ago

Timing, as they say, is everything!!

And DUH!!! The commit message of the most recent commit says it all image

hepabolu commented 7 months ago

Thanks guys. I'll merge the code to main and close this issue.