Sha256: d70c3dd528c21cdccac262500afb42ac149488773cca97fe6a2b421f68d11131

Contents?: true

Size: 601 Bytes

Versions: 27

Compression:

Stored size: 601 Bytes

Contents

class SpudUserSession < Authlogic::Session::Base

  # Rails 4.2 fix. Possibly temporary?
  # https://github.com/binarylogic/authlogic/issues/432#issuecomment-62506755
  extend ActiveModel::Naming

  generalize_credentials_error_messages true

  # Dont update last_request_at timestamp on every page request
  last_request_at_threshold 1.minutes

  # Lock a user out after 10 failed login attempts, for 1 hour
  consecutive_failed_logins_limit 10
  failed_login_ban_for 1.hours

  # Log a user out after :logged_in_timeout has elapsed - see SpudUserModel for configuration
  logout_on_timeout true
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
tb_core-1.5.4 app/models/spud_user_session.rb
tb_core-1.5.3 app/models/spud_user_session.rb
tb_core-1.5.2 app/models/spud_user_session.rb
tb_core-1.5.1 app/models/spud_user_session.rb
tb_core-1.4.3.1 app/models/spud_user_session.rb
tb_core-1.5.0 app/models/spud_user_session.rb
tb_core-1.4.8 app/models/spud_user_session.rb
tb_core-1.4.7 app/models/spud_user_session.rb
tb_core-1.4.6 app/models/spud_user_session.rb
tb_core-1.4.5 app/models/spud_user_session.rb
tb_core-1.4.4 app/models/spud_user_session.rb
tb_core-1.4.3 app/models/spud_user_session.rb
tb_core-1.4.2 app/models/spud_user_session.rb
tb_core-1.4.1 app/models/spud_user_session.rb
tb_core-1.4.0.1 app/models/spud_user_session.rb
tb_core-1.4.beta2 app/models/spud_user_session.rb
tb_core-1.4.beta1 app/models/spud_user_session.rb
tb_core-1.3.10 app/models/spud_user_session.rb
tb_core-1.3.9 app/models/spud_user_session.rb
tb_core-1.3.7 app/models/spud_user_session.rb