15 lines
535 B
Ruby
15 lines
535 B
Ruby
Devise.setup do |config|
|
|
config.secret_key = ENV["DEVISE_SECRET"]
|
|
config.mailer_sender = 'do-not-reply@farmbot.io'
|
|
require 'devise/orm/active_record'
|
|
config.case_insensitive_keys = [ :email ]
|
|
config.strip_whitespace_keys = [ :email ]
|
|
config.skip_session_storage = [:http_auth]
|
|
config.stretches = Rails.env.test? ? 1 : 10
|
|
config.reconfirmable = true
|
|
config.expire_all_remember_me_on_sign_out = true
|
|
config.password_length = 8..128
|
|
config.reset_password_within = 6.hours
|
|
config.sign_out_via = [:delete, :get]
|
|
end
|