summaryrefslogtreecommitdiff
path: root/users/config/initializers/warden.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/config/initializers/warden.rb')
-rw-r--r--users/config/initializers/warden.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/config/initializers/warden.rb b/users/config/initializers/warden.rb
new file mode 100644
index 0000000..45feb6c
--- /dev/null
+++ b/users/config/initializers/warden.rb
@@ -0,0 +1,7 @@
+Rails.configuration.middleware.use RailsWarden::Manager do |config|
+ config.default_strategies :secure_remote_password
+ config.failure_app = SessionsController
+end
+
+RailsWarden.unauthenticated_action = :new
+