Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding skip_before_filter :authenticate

So that you can use before_filter :authenticate
in your application_controller without having to
override the Clearance controllers
  • Loading branch information...
commit 9e799b17891212c813561cca20ab0c6776d79ee7 1 parent 61d3f22
Matthew Ford authored September 17, 2009 croaky committed February 16, 2010
3  app/controllers/clearance/confirmations_controller.rb
... ...
@@ -1,6 +1,7 @@
1 1
 class Clearance::ConfirmationsController < ApplicationController
2 2
   unloadable
3  
-
  3
+  
  4
+  skip_before_filter :authenticate
4 5
   before_filter :redirect_signed_in_confirmed_user,  :only => [:new, :create]
5 6
   before_filter :redirect_signed_out_confirmed_user, :only => [:new, :create]
6 7
   before_filter :forbid_missing_token,               :only => [:new, :create]
3  app/controllers/clearance/passwords_controller.rb
... ...
@@ -1,6 +1,7 @@
1 1
 class Clearance::PasswordsController < ApplicationController
2 2
   unloadable
3  
-
  3
+  
  4
+  skip_before_filter :authenticate
4 5
   before_filter :forbid_missing_token,     :only => [:edit, :update]
5 6
   before_filter :forbid_non_existent_user, :only => [:edit, :update]
6 7
   filter_parameter_logging :password, :password_confirmation
1  app/controllers/clearance/sessions_controller.rb
... ...
@@ -1,6 +1,7 @@
1 1
 class Clearance::SessionsController < ApplicationController
2 2
   unloadable
3 3
 
  4
+  skip_before_filter :authenticate
4 5
   protect_from_forgery :except => :create
5 6
   filter_parameter_logging :password
6 7
 
1  app/controllers/clearance/users_controller.rb
@@ -2,6 +2,7 @@ class Clearance::UsersController < ApplicationController
2 2
   unloadable
3 3
 
4 4
   before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
  5
+  skip_before_filter :authenticate, :only => [:new, :create]
5 6
   filter_parameter_logging :password
6 7
 
7 8
   def new

0 notes on commit 9e799b1

Please sign in to comment.
Something went wrong with that request. Please try again.