Sha256: ce7d2af4b4a7b236c74180937766efd9b61262042ee473c13d8a545691d2b9c1
Contents?: true
Size: 687 Bytes
Versions: 6
Compression:
Stored size: 687 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
6 entries across 6 versions & 1 rubygems