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

Add function to re-geterante the OTP secret #14

Closed TikiTDO closed 9 years ago

TikiTDO commented 9 years ago

I had a use case where I might want to re-generate the OTP key in case it was compromised. This offloads the generation to a separate method so it can be called in the future.