Sha256: 3c0cc42cff5c31a158ded6f160cf8405b38363af01020c32712439387b9b3427

Contents?: true

Size: 755 Bytes

Versions: 5

Compression:

Stored size: 755 Bytes

Contents

module TwoFactorAuthentication
  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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
two_factor_authentication-2.2.0 lib/two_factor_authentication/schema.rb
two_factor_authentication-2.1.1 lib/two_factor_authentication/schema.rb
two_factor_authentication-2.1.0 lib/two_factor_authentication/schema.rb
two_factor_authentication-2.0.1 lib/two_factor_authentication/schema.rb
two_factor_authentication-2.0.0 lib/two_factor_authentication/schema.rb