saucy/config/initializers/clearance.rb

9 lines
298 B
Ruby

Clearance.configure do |config|
config.allow_sign_up = false
config.mailer_sender = ENV['SMTP_FROM_ADDRESS']
config.rotate_csrf_on_sign_in = true
config.secure_cookie = ENV.fetch("SECURE_COOKIE", "true") == "true"
config.signed_cookie = true
config.sign_in_guards = ["ActiveGuard"]
end