Sha256: fdb4d6785667466d88ebaffae486ef6a0802366aef7195fbf2afec1f922178a4

Contents?: true

Size: 738 Bytes

Versions: 10

Compression:

Stored size: 738 Bytes

Contents

class TestUser
  extend ActiveModel::Callbacks
  include ActiveModel::Validations
  include Devise::Models::TwoFactorAuthenticatable
  extend Lockbox::Model

  define_model_callbacks :create
  attr_accessor :encrypted_otp_secret_key,
                :email,
                :second_factor_attempts_count,
                :totp_timestamp,
                :direct_otp,
                :direct_otp_sent_at,
                :otp_secret_key

  def self.fields
    {}
  end

  def self.attribute_names
    []
  end

  def serializable_hash(_options = nil)
    {}
  end

  def encrypted_otp_secret_key_changed?
    false
  end

  def update_columns(values)
    values.each do |key, value|
      send("#{key}=", value)
    end
    true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
devise-multi-factor-3.2.5 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.2.4 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.2.3 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.2.2 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.2.1 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.2.0 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.1.8 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.1.7 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.1.6 spec/rails_app/app/models/test_user.rb
devise-multi-factor-3.1.5 spec/rails_app/app/models/test_user.rb