Sha256: c519db1409730d9e4fcaf5e4813fbdeeee34857df1c130c75b59acc99c0086a7

Contents?: true

Size: 728 Bytes

Versions: 7

Compression:

Stored size: 728 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 :otp_authenticatable, :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

7 entries across 7 versions & 3 rubygems

Version Path
devise-otp-0.4.0 test/dummy/app/models/user.rb
devise-otp-0.3.0 test/dummy/app/models/user.rb
devise-otp2-0.2.6 test/dummy/app/models/user.rb
devise-otp2-0.2.5 test/dummy/app/models/user.rb
devise-otp2-0.2.4 test/dummy/app/models/user.rb
devise-otp-rails5-0.2.4 test/dummy/app/models/user.rb
devise-otp-0.2.3 test/dummy/app/models/user.rb