summaryrefslogtreecommitdiff
path: root/config/initializers/warden.rb
blob: 22892b3538f9d4bb0a51d7140a718ea1f13a22a9 (plain)
1
2
3
4
5
6
7
8
9
10
require "warden/session_serializer"
require "warden/strategies/secure_remote_password"

Rails.configuration.middleware.use RailsWarden::Manager do |config|
  config.default_strategies :secure_remote_password
  config.failure_app = SessionsController
end

RailsWarden.unauthenticated_action = :new