mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
make remember configurable
This commit is contained in:
1 parent
06415ad869
commit
9629cc7226
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user