-
Notifications
You must be signed in to change notification settings - Fork 249
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
feat: Added new PasswordStrengthScore method #2599
Conversation
By integrating `zxcvbn` module, it has been added a new method to get the specific password strength score information.
Pull Request Checklist
|
if err != nil { | ||
return makeJSONResponse(fmt.Errorf("Error marshalling to json: %v", err)) | ||
} | ||
return string(data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it not be makeJSONResponse?
same question for function GetPasswordStrengthScore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
due to an issue parsing JSON response in the NIM site since the zxcvbnreturns big int crack time numbers when the password lenght is big and nim json cannot parse the response correctly
I'm not sure if I fully understand this. You mean that in Nim we have issues parsing the response because the Int returned is too big?
If that's the case, we can use the stint
library, which is used to parse big numbers.
If we can, having only one function for Strength and Score would be great
Let me try to explain it better.. And I've realised the post link was wrong so I can understand why you cannot understand my comment!! I firstly created the generic I hope it is more clear now and it has sense :) |
@noeliaSD Aaaah yes it's much clearer now. I already approved, so here is a thumbs up instead 👍 |
What does the PR do
By integrating
zxcvbn
module, it has been added a new method to get the specific password strength score information.Closes #5096 together with related
nim-go
anddesktop
PRs.NOTE: Added specific get score method althought there is already
PasswordStrength
one, that provides the same but extended information, due to an issue parsing JSON response in the NIM site since thezxcvbn
returns big int crack time numbers when the password lenght is big and nim json cannot parse the response correctly. See the following post.