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

Fix zxcvbn divergence #99

Merged
merged 1 commit into from
May 16, 2019
Merged

Fix zxcvbn divergence #99

merged 1 commit into from
May 16, 2019

Conversation

silasdavis
Copy link
Contributor

@silasdavis silasdavis commented May 13, 2019

While testing my sign up form I noticed that some passwords meeting my strength criteria in JS were failing remotely.

It looks like the zxcvbn library currently used by authn is not conformant: nbutton23/zxcvbn-go#20

This one looks better, and at the very least passes my single test case: https://github.com/trustelem/zxcvbn and so this PR switches us over to that library.

They seem to have a reasonably good testing regime so hopefully it can be trusted. Pretty sure it is an improvement in any case.

@coveralls
Copy link

coveralls commented May 13, 2019

Coverage Status

Coverage increased (+0.007%) to 77.244% when pulling 2bb1a7e on silasdavis:fix-zxcvbn into 1db7099 on keratin:master.

Copy link
Member

@cainlevy cainlevy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you add an entry to CHANGELOG.md?

app/services/validations_test.go Outdated Show resolved Hide resolved
canonical zxcvbn implementation as nbutton23 version does

Signed-off-by: Silas Davis <silas@monax.io>
@silasdavis
Copy link
Contributor Author

Done thanks for review

@cainlevy cainlevy merged commit 668b067 into keratin:master May 16, 2019
@silasdavis silasdavis deleted the fix-zxcvbn branch May 16, 2019 14:07
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.

None yet

3 participants