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

After feature for TOTP to prevent code reuse #99

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

thiagogabriel
Copy link
Contributor

It is useful to be able to prevent the code reuse on OTP, specially when sending the code via SMS, which requires the extension of the time the code will be valid by using drift.

ROTP reference:
https://github.com/mdp/rotp/blob/2be11551ac4982670d526ceef4a5db985d0f626a/README.md#preventing-reuse-of-time-based-otps

totp.verify(code, drift_behind: drift)
else
totp.verify(code)
otp_after = public_send(otp_after_column_name) if otp_after_column_name_enabled?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [88/80]

@paratiger
Copy link

👍

Copy link

@TylerRick TylerRick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Let's merge it in, please!

@guilleiguaran guilleiguaran merged commit 6859113 into heapsource:main Mar 25, 2023
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.

5 participants