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

Provide the number of times a particular password was pwned #4

Open
SeanFarrow opened this issue Mar 6, 2019 · 4 comments · May be fixed by #13
Open

Provide the number of times a particular password was pwned #4

SeanFarrow opened this issue Mar 6, 2019 · 4 comments · May be fixed by #13
Assignees

Comments

@SeanFarrow
Copy link

It would be nice to have the number of times a password was pwned returned rather than just a true/false value as to whether it was actually pwned.

Then we could add an IsPwned method to the PwnedStore struct to allow a user to use the old behaviour if this was desired.

I'm happy to make this change if it's something you would accept?

@mattevans
Copy link
Owner

@SeanFarrow Sounds good. Thanks. Lodge a PR and lets get it merged 👍

@SeanFarrow
Copy link
Author

@mattevans,
OK, I'll fork and work on this tomorrow.
What are you doing regarding testing in terms of new methods?

@mattevans
Copy link
Owner

Perhaps the pwnd count could be returned as part of a new method (rather than Compromised()). Tests are using the onsi/gomega pkg. You can easily add tests to pwned_test.go (here - take a look how some of the others are implemented.

@SeanFarrow
Copy link
Author

SeanFarrow commented Mar 8, 2019 via email

@NickBorgers NickBorgers linked a pull request Aug 1, 2022 that will close this issue
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 a pull request may close this issue.

2 participants