Sha256: 852c18e7fa1206ca28aa334487206839a39f0392322a14800a1baed84c1ce12e
Contents?: true
Size: 757 Bytes
Versions: 3
Compression:
Stored size: 757 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, :recoverable, :rememberable, :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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
devise-otp-0.2.2 | test/dummy/app/models/user.rb |
devise-otp-0.2.0 | test/dummy/app/models/user.rb |
devise-otp-0.1.1 | test/dummy/app/models/user.rb |