Sha256: 3e980387b68458410755aefd90864b9b9b5f25f12fdc8816b5c2ae7414d4618f

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

Contents

module DeviseXfactorAuthentication
  module Schema
    def second_factor_attempts_count
      apply_devise_schema :second_factor_attempts_count, Integer, :default => 0
    end

    def encrypted_otp_secret_key
      apply_devise_schema :encrypted_otp_secret_key, String
    end

    def encrypted_otp_secret_key_iv
      apply_devise_schema :encrypted_otp_secret_key_iv, String
    end

    def encrypted_otp_secret_key_salt
      apply_devise_schema :encrypted_otp_secret_key_salt, String
    end

    def direct_otp
      apply_devise_schema :direct_otp, String
    end

    def direct_otp_sent_at
      apply_devise_schema :direct_otp_sent_at, DateTime
    end

    def totp_timestamp
      apply_devise_schema :totp_timestamp, Timestamp
    end

    def uses_two_factor
      apply_devise_schema :uses_two_factor, Boolean, :default => true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise_xfactor_authentication-2.2.23 lib/devise_xfactor_authentication/schema.rb
devise_xfactor_authentication-2.2.22 lib/devise_xfactor_authentication/schema.rb
devise_xfactor_authentication-2.2.21 lib/devise_xfactor_authentication/schema.rb
devise_xfactor_authentication-2.2.20 lib/devise_xfactor_authentication/schema.rb
devise_xfactor_authentication-2.2.19 lib/devise_xfactor_authentication/schema.rb