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

Fix otp_random_secret static method #55

Closed shlima closed 5 years ago

shlima commented 5 years ago

This PR fixes the following line in Readme:

User.find_each { |user| user.update_attribute(:otp_secret_key, User.otp_random_secret) }

For now @user.otp_random_secret is instance method, not static

shlima commented 5 years ago

@robertomiranda

robertomiranda commented 5 years ago

thanks @shlima