Sha256: 696b83b4d1300f42411bf7691f8b29c9d43177ce49409260e0450525b408cfd3

Contents?: true

Size: 434 Bytes

Versions: 5

Compression:

Stored size: 434 Bytes

Contents

class GuestUser
  extend ActiveModel::Callbacks
  include ActiveModel::Validations
  include Devise::Models::TwoFactorAuthenticatable

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

  def update_attributes(attrs)
    attrs.each do |key, value|
      send(key.to_s + '=', value)
    end
  end

  has_one_time_password
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
two_factor_authentication-2.2.0 spec/rails_app/app/models/guest_user.rb
two_factor_authentication-2.1.1 spec/rails_app/app/models/guest_user.rb
two_factor_authentication-2.1.0 spec/rails_app/app/models/guest_user.rb
two_factor_authentication-2.0.1 spec/rails_app/app/models/guest_user.rb
two_factor_authentication-2.0.0 spec/rails_app/app/models/guest_user.rb