Adopt session cookie configuration for remember me cookie (#12938)

This commit is contained in:
rhymes 2021-03-10 16:45:48 +01:00 committed by GitHub
parent 45c0d84e48
commit cc2b76f7e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,7 @@ Devise.setup do |config|
# Options to be passed to the created cookie. For instance, you can set
# secure: true in order to force SSL only cookies.
# config.rememberable_options = {}
config.rememberable_options = { secure: ApplicationConfig["FORCE_SSL_IN_RAILS"] == "true", same_site: :lax }
# ==> Configuration for :validatable
# Range for password length.