heapsource / active_model_otp

Adds methods to set and authenticate against one time passwords (Two-Factor Authentication). Inspired in AM::SecurePassword
MIT License
769 stars 81 forks source link

OTP reusable. #36

Closed 23ranjan closed 7 years ago

23ranjan commented 7 years ago

Hi,

In my current configuration :- has_one_time_password column_name: :otp_secret_key, length: 4

OTP is reusable. Any one can use a used otp code again.

Is there any way to make the otp code one time usable ?

Thanks, Ranjan

23ranjan commented 7 years ago

@robertomiranda Can you help me on this ?