Module: Devise::Models::TwoFactorAuthenticatable::EncryptionInstanceMethods
- Defined in:
- lib/two_factor_authentication/models/two_factor_authenticatable.rb
Instance Method Summary collapse
Instance Method Details
#otp_secret_key ⇒ Object
67 68 69 |
# File 'lib/two_factor_authentication/models/two_factor_authenticatable.rb', line 67 def otp_secret_key decrypt(encrypted_otp_secret_key) end |
#otp_secret_key=(value) ⇒ Object
71 72 73 |
# File 'lib/two_factor_authentication/models/two_factor_authenticatable.rb', line 71 def otp_secret_key=(value) self.encrypted_otp_secret_key = encrypt(value) end |