diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-27 20:28:46 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-27 20:35:16 +0100 |
commit | ba192f12e381842c90df0fab2fcb1a23cae97fc4 (patch) | |
tree | 1af8032d690d9c20af8b481d42978829b01334b6 /app/models | |
parent | 237cb41ab4d841fb215ce6707c8d7695ef44b103 (diff) |
Added optional two-factor authentication
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 71d3ee0b8..b34144f2c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -3,7 +3,9 @@ class User < ApplicationRecord include Settings::Extend - devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :confirmable + devise :registerable, :recoverable, + :rememberable, :trackable, :validatable, :confirmable, + :two_factor_authenticatable, otp_secret_encryption_key: ENV['OTP_SECRET'] belongs_to :account, inverse_of: :user accepts_nested_attributes_for :account |