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

Set default digit value for hotp.GenerateCodeCustom() #77

Merged
merged 2 commits into from Oct 12, 2022
Merged

Set default digit value for hotp.GenerateCodeCustom() #77

merged 2 commits into from Oct 12, 2022

Conversation

svbnbyrk
Copy link
Contributor

@svbnbyrk svbnbyrk commented Oct 11, 2022

Problem: If the validate Ops.Digit parameter is not passed to the hotp.GenerateCodeCustom() function, the default value is not correctly assigned. By default, it should generate a 6-digit code, but it produces 0.

Solution:

  • Add unit test for hotp.GenerateCodeCustom()
  • I set the otp.DigitSix value as the default.

@pquerna pquerna merged commit 45fc76e into pquerna:master Oct 12, 2022
@svbnbyrk
Copy link
Contributor Author

Hi @pquerna , I'm attending Hactoberfest. This PR must have a hacktoberfest label to be valid for Hactoberfest participation rules. Can you add the hackoberfest label this PR pls?

@svbnbyrk
Copy link
Contributor Author

Hi @pquerna, This PR isn't valid yet. I guess just hacktoberfest-accepted label is enough. My fault, sorry. Thank u for support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants