user.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
 (HTM) git clone git://jay.scot/warvox
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       user.rb (1233B)
       ---
            1 # == Schema Information
            2 #
            3 # Table name: users
            4 #
            5 #  id                  :integer          not null, primary key
            6 #  login               :string(255)      not null
            7 #  email               :string(255)
            8 #  crypted_password    :string(255)      not null
            9 #  password_salt       :string(255)      not null
           10 #  persistence_token   :string(255)      not null
           11 #  single_access_token :string(255)      not null
           12 #  perishable_token    :string(255)      not null
           13 #  login_count         :integer          default(0), not null
           14 #  failed_login_count  :integer          default(0), not null
           15 #  last_request_at     :datetime
           16 #  current_login_at    :datetime
           17 #  last_login_at       :datetime
           18 #  current_login_ip    :string(255)
           19 #  last_login_ip       :string(255)
           20 #  created_at          :datetime
           21 #  updated_at          :datetime
           22 #  enabled             :boolean          default(TRUE)
           23 #  admin               :boolean          default(TRUE)
           24 #
           25 
           26 class User < ApplicationRecord
           27   include RailsSettings::Extend
           28   acts_as_authentic do |c|
           29     c.validate_email_field = false
           30     c.merge_validates_length_of_password_field_options minimum: 8
           31     c.merge_validates_length_of_password_confirmation_field_options minimum: 8
           32     c.logged_in_timeout = 1.day
           33   end
           34 end