You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
741 B
32 lines
741 B
3 years ago
|
module Devise2Fa
|
||
13 years ago
|
module Schema
|
||
13 years ago
|
def second_factor_attempts_count
|
||
13 years ago
|
apply_devise_schema :second_factor_attempts_count, Integer, :default => 0
|
||
|
end
|
||
9 years ago
|
|
||
|
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
|
||
9 years ago
|
|
||
|
def direct_otp
|
||
|
apply_devise_schema :direct_otp, String
|
||
|
end
|
||
|
|
||
|
def direct_otp_sent_at
|
||
|
apply_devise_schema :direct_otp_sent_at, DateTime
|
||
|
end
|
||
9 years ago
|
|
||
|
def totp_timestamp
|
||
|
apply_devise_schema :totp_timestamp, Timestamp
|
||
|
end
|
||
13 years ago
|
end
|
||
|
end
|