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

Add password score endpoint #149

Merged
merged 7 commits into from
Feb 11, 2020

Conversation

martinreus
Copy link
Contributor

@martinreus martinreus commented Feb 8, 2020

What

Add endpoint for checking password's zxcvbn score

Motivation

Having to use a client JS library to check for password score adds almost 800kb payload that has to be downloaded by the user. Even though registration happens only once, having to download this amount of data on a sometimes slower mobile connection could very much frustrate users. Moving this check to the backend also ensures that the algorithm (and dictionaries used for the zxcvbn) is the same.

@coveralls
Copy link

coveralls commented Feb 8, 2020

Coverage Status

Coverage increased (+0.1%) to 77.127% when pulling f537288 on martinreus:feature/check-pw-strength into 209490b on keratin:master.

@martinreus martinreus changed the title Adding password score endpoint Add password score endpoint Feb 8, 2020
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.

Makes sense to me! We did notice a difference in zxcvbn libraries once.

Would you add an entry to docs/api.md and a mention in docs/guide-displaying_a_password_strength_meter.md?

@martinreus
Copy link
Contributor Author

Makes sense to me! We did notice a difference in zxcvbn libraries once.

Would you add an entry to docs/api.md and a mention in docs/guide-displaying_a_password_strength_meter.md?

So sorry, forgot the docs again 😅
Done!

@cainlevy cainlevy merged commit 9e9b970 into keratin:master Feb 11, 2020
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