Sha256: 1b77e36036fe114eb9c0587a55b29dfb166979fdc16aba758e1c938512406707
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
class User < PARENT_MODEL_CLASS if DEVISE_ORM == :mongoid include Mongoid::Document ## Database authenticatable field :email, type: String, null: false, default: '' field :encrypted_password, type: String, null: false, default: '' ## Recoverable field :reset_password_token, type: String field :reset_password_sent_at, type: Time end devise :two_factorable, :database_authenticatable, :registerable, :trackable, :validatable # Setup accessible (or protected) attributes for your model # attr_accessible :otp_enabled, :otp_mandatory, :as => :otp_privileged # attr_accessible :email, :password, :password_confirmation, :remember_me end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-2fa-0.1.1 | test/dummy/app/models/user.rb |
devise-2fa-0.1.0 | test/dummy/app/models/user.rb |