Sha256: 082ead74c5a6c831d5140c549bb99193da1dc0a875d2b8ec13d9f0e9ade44b89

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

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

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

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

  has_one_time_password
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_xfactor_authentication-2.2.23 spec/rails_app/app/models/guest_user.rb
devise_xfactor_authentication-2.2.22 spec/rails_app/app/models/guest_user.rb
devise_xfactor_authentication-2.2.21 spec/rails_app/app/models/guest_user.rb
devise_xfactor_authentication-2.2.20 spec/rails_app/app/models/guest_user.rb
devise_xfactor_authentication-2.2.19 spec/rails_app/app/models/guest_user.rb
devise_xfactor_authentication-2.2.18 spec/rails_app/app/models/guest_user.rb