From ba5b779cd0c0128bcbed828082e6657f1c172a59 Mon Sep 17 00:00:00 2001 From: Dennis Schubert Date: Tue, 6 Nov 2012 22:24:57 +0100 Subject: [PATCH] Make Devise remember the session for 2 weeks. Fix #3472 --- Changelog.md | 1 + config/initializers/devise.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 7f65f6344..eb91ef481 100644 --- a/Changelog.md +++ b/Changelog.md @@ -36,6 +36,7 @@ * Fix empty page after authenticating with other services. [#3693](https://github.com/diaspora/diaspora/pull/3693) * Fix posting public posts to Facebook. [#2882](https://github.com/diaspora/diaspora/issues/2882), [#3650](https://github.com/diaspora/diaspora/issues/3650) * Fix error with invite link box shows on search results page even if invites have been turned off. [#3708](https://github.com/diaspora/diaspora/pull/3708) +* Fix misconfiguration of Devise to allow the session to be remembered. [#3472](https://github.com/diaspora/diaspora/issues/3472) # 0.0.1.2 diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 8f6c83204..a4e8cf7b4 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -77,7 +77,7 @@ Devise.setup do |config| # ==> Configuration for :rememberable # The time the user will be remembered without asking for credentials again. - # config.remember_for = 2.weeks + config.remember_for = 2.weeks # ==> Configuration for :validatable # Range for password length @@ -89,7 +89,7 @@ Devise.setup do |config| # ==> Configuration for :timeoutable # The time you want to timeout the user session without activity. After this # time the user will be asked for credentials again. - config.timeout_in = 1.day + # config.timeout_in = 1.day # ==> Configuration for :lockable # Defines which strategy will be used to lock an account.