Skip to content

Commit

Permalink
scope skip_before_filter :authenticate to only actions Clearance defi…
Browse files Browse the repository at this point in the history
…nes. updated CHANGELOG
  • Loading branch information
Dan Croak committed Feb 15, 2010
1 parent 6be0f61 commit 087b55b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.textile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
h2. 0.8.6 (unreleased)

* Clearance features capitalization should match view text (Bobby Wilson)
* skip :authenticate before_filter in controllers so apps can easily
authenticate a whole site without subclassing (Matthew Ford)

h2. 0.8.5 (01/20/2009)

Expand Down
2 changes: 1 addition & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ h2. Authors

Clearance was extracted out of "Hoptoad":http://hoptoadapp.com. We merged the authentication code from two of thoughtbot's clients' Rails apps and have since used it each time we need authentication. The following people have improved the library. Thank you!

Dan Croak, Mike Burns, Jason Morrison, Joe Ferris, Eugene Bolshakov, Nick Quaranto, Josh Nichols, Mike Breen, Marcel Görner, Bence Nagy, Ben Mabey, Eloy Duran, Tim Pope, Mihai Anca, Mark Cornick, Shay Arnett, Joshua Clayton, Mustafa Ekim, Jon Yurek, Anuj Dutta, and Chad Pytel.
Dan Croak, Mike Burns, Jason Morrison, Joe Ferris, Eugene Bolshakov, Nick Quaranto, Josh Nichols, Mike Breen, Marcel Görner, Bence Nagy, Ben Mabey, Eloy Duran, Tim Pope, Mihai Anca, Mark Cornick, Shay Arnett, Joshua Clayton, Mustafa Ekim, Jon Yurek, Anuj Dutta, Chad Pytel, Ben Orenstein, Bobby Wilson, and Matthew Ford.

4 changes: 2 additions & 2 deletions app/controllers/clearance/confirmations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Clearance::ConfirmationsController < ApplicationController
unloadable
skip_before_filter :authenticate

skip_before_filter :authenticate, :only => [:new, :create]
before_filter :redirect_signed_in_confirmed_user, :only => [:new, :create]
before_filter :redirect_signed_out_confirmed_user, :only => [:new, :create]
before_filter :forbid_missing_token, :only => [:new, :create]
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/clearance/passwords_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Clearance::PasswordsController < ApplicationController
unloadable
skip_before_filter :authenticate

skip_before_filter :authenticate, :only => [:edit, :update]
before_filter :forbid_missing_token, :only => [:edit, :update]
before_filter :forbid_non_existent_user, :only => [:edit, :update]
filter_parameter_logging :password, :password_confirmation
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/clearance/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Clearance::SessionsController < ApplicationController
unloadable

skip_before_filter :authenticate
skip_before_filter :authenticate, :only => [:new, :create, :destroy]
protect_from_forgery :except => :create
filter_parameter_logging :password

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/clearance/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Clearance::UsersController < ApplicationController
unloadable

before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
skip_before_filter :authenticate, :only => [:new, :create]
before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
filter_parameter_logging :password

def new
Expand Down

0 comments on commit 087b55b

Please sign in to comment.