Class: Auth::Behavior::RememberMe::Configuration

Inherits:
Base::Configuration show all
Defined in:
lib/auth/behavior/remember_me/configuration.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Configuration

#configuration

Instance Method Summary collapse

Methods inherited from Base::Configuration

configuration_name, #configuration_name, #enabled?, #initialize

Methods included from Configuration::Keys

#configuration_keys, included, #to_hash

Constructor Details

This class inherits a constructor from Auth::Behavior::Base::Configuration

Instance Attribute Details

#durationObject

How long can a user stay logged in?

Default:

6.months


12
13
14
# File 'lib/auth/behavior/remember_me/configuration.rb', line 12

def duration
  @duration
end

#token_theft_messageObject

Message to be displayed in flash when a likely theft of the remember token has been detected.

Default:

"Your account may have been hijacked recently! Verify that all settings are correct."


6
7
8
# File 'lib/auth/behavior/remember_me/configuration.rb', line 6

def token_theft_message
  @token_theft_message
end

Instance Method Details

#defaults!Object



14
15
16
17
# File 'lib/auth/behavior/remember_me/configuration.rb', line 14

def defaults!
  @token_theft_message = "Your account may have been hijacked recently! Verify that all settings are correct."
  @duration = 6.months
end