Sha256: 72a56194d0a372c08d5bc65151a9bf95c666b3570b771352a83870dc9225bcee
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
require 'two_factor_authentication/version' require 'devise' require 'active_support/concern' require "active_model" require "active_record" require "active_support/core_ext/class/attribute_accessors" require "cgi" module Devise mattr_accessor :max_login_attempts @@max_login_attempts = 3 mattr_accessor :allowed_otp_drift_seconds @@allowed_otp_drift_seconds = 30 mattr_accessor :otp_length @@otp_length = 6 mattr_accessor :remember_otp_session_for_seconds @@remember_otp_session_for_seconds = 0 end module TwoFactorAuthentication NEED_AUTHENTICATION = 'need_two_factor_authentication' REMEMBER_TFA_COOKIE_NAME = "remember_tfa" autoload :Schema, 'two_factor_authentication/schema' module Controllers autoload :Helpers, 'two_factor_authentication/controllers/helpers' end end Devise.add_module :two_factor_authenticatable, :model => 'two_factor_authentication/models/two_factor_authenticatable', :controller => :two_factor_authentication, :route => :two_factor_authentication require 'two_factor_authentication/orm/active_record' require 'two_factor_authentication/routes' require 'two_factor_authentication/models/two_factor_authenticatable' require 'two_factor_authentication/rails'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
two_factor_authentication-1.1.4 | lib/two_factor_authentication.rb |