2022-06-25 22:45:47 +00:00
|
|
|
Clearance.configure do |config|
|
|
|
|
config.allow_sign_up = false
|
|
|
|
config.mailer_sender = ENV['SMTP_FROM_ADDRESS']
|
|
|
|
config.rotate_csrf_on_sign_in = true
|
2023-11-13 09:08:12 +00:00
|
|
|
config.secure_cookie = ENV.fetch("SECURE_COOKIE", "true") == "true"
|
2022-06-25 22:45:47 +00:00
|
|
|
config.signed_cookie = true
|
|
|
|
config.sign_in_guards = ["ActiveGuard"]
|
|
|
|
end
|