make remember configurable

This commit is contained in:
Pete Matsyburka
2025-03-05 20:44:32 +02:00
parent 06415ad869
commit 9629cc7226
+1 -1
View File
@@ -187,7 +187,7 @@ Devise.setup do |config|
# ==> Configuration for :rememberable
# The time the user will be remembered without asking for credentials again.
config.remember_for = 2.years
config.remember_for = ENV.fetch('SESSION_REMEMBER_DAYS', '730').to_i.days
# Invalidates all the remember me tokens when the user signs out.
config.expire_all_remember_me_on_sign_out = true