Module: Devise::Models::DeviseXfactorAuthenticatable::EncryptionInstanceMethods

Defined in:
lib/devise_xfactor_authentication/models/devise_xfactor_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#otp_secret_keyObject



127
128
129
# File 'lib/devise_xfactor_authentication/models/devise_xfactor_authenticatable.rb', line 127

def otp_secret_key
  otp_decrypt(encrypted_otp_secret_key)
end

#otp_secret_key=(value) ⇒ Object



131
132
133
# File 'lib/devise_xfactor_authentication/models/devise_xfactor_authenticatable.rb', line 131

def otp_secret_key=(value)
  self.encrypted_otp_secret_key = otp_encrypt(value)
end