summaryrefslogtreecommitdiff
path: root/config/initializers/warden.rb
blob: 43e31baf75c7580c1a330a17a33fa7434fa6c48d (plain)
1
2
3
4
5
6
7
8
9
10
11
require "warden/session_serializer"
require "extensions/warden"
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