Class: Auth::Behavior::RememberMe::Configuration
- Inherits:
-
Base::Configuration
- Object
- Base::Configuration
- Auth::Behavior::RememberMe::Configuration
- Defined in:
- lib/auth/behavior/remember_me/configuration.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
How long can a user stay logged in?.
-
#token_theft_message ⇒ Object
Message to be displayed in flash when a likely theft of the remember token has been detected.
Attributes inherited from Base::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
#duration ⇒ Object
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_message ⇒ Object
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 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 |