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

Allows length of OTP to be configured #44

Merged
merged 1 commit into from
Dec 14, 2014
Merged

Allows length of OTP to be configured #44

merged 1 commit into from
Dec 14, 2014

Conversation

amoose
Copy link
Contributor

@amoose amoose commented Dec 3, 2014

Allows length of OTP to be configured.

I'm not sure if this fits the roadmap, but sometimes an application may need a longer (or shorter) one-time password.


Set config values, if desired, for maximum second factor attempts count, allowed time drift, and OTP length.

  config.max_login_attempts = 3
  config.allowed_otp_drift_seconds = 30
  config.otp_length = 6

Adds otp_length to options in README

Sets default length to 6
@Houdini Houdini merged commit 3076c60 into Houdini:master Dec 14, 2014
@Houdini
Copy link
Owner

Houdini commented Dec 14, 2014

Thanks

@amoose amoose deleted the feature/otp_length branch December 14, 2014 19:26
@amoose
Copy link
Contributor Author

amoose commented Dec 14, 2014

np! love the gem!

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.

2 participants