Browse Source

Presistent login

development
Godwin 7 years ago
parent
commit
a3c7bb99d8
  1. 2
      app/assets/stylesheets/bumbleberry-settings.json
  2. 4
      config/initializers/sorcery.rb

2
app/assets/stylesheets/bumbleberry-settings.json

@ -10,7 +10,7 @@
"and_chr": ["59"],
"chrome": ["59"],
"edge": ["13"],
"firefox": ["52"],
"firefox": ["54"],
"ie": ["11"],
"ios_saf": ["8", "9"]
}

4
config/initializers/sorcery.rb

@ -8,7 +8,7 @@ require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE if Rails.env.development?
Rails.application.config.sorcery.submodules = [:external]
Rails.application.config.sorcery.submodules = [:external, :remember_me]
# Here you can configure each submodule's features.
Rails.application.config.sorcery.configure do |config|
@ -231,7 +231,7 @@ Rails.application.config.sorcery.configure do |config|
# How long in seconds the session length will be
# Default: `604800`
#
# user.remember_me_for =
user.remember_me_for = 2592000
# -- user_activation --

Loading…
Cancel
Save