Permalink
Browse files

Making the clearance controllers unloadable

  • Loading branch information...
1 parent 0b7dadf commit 9e669e4bd98cac22129f3d40642068525844ffd2 @qrush qrush committed Apr 21, 2009
@@ -1,4 +1,5 @@
class Clearance::ConfirmationsController < ApplicationController
+ unloadable
before_filter :forbid_confirmed_user, :only => :new
before_filter :forbid_missing_token, :only => :new
@@ -1,4 +1,5 @@
class Clearance::PasswordsController < ApplicationController
+ unloadable
before_filter :forbid_missing_token, :only => [:edit, :update]
before_filter :forbid_non_existent_user, :only => [:edit, :update]
@@ -1,4 +1,5 @@
class Clearance::SessionsController < ApplicationController
+ unloadable
protect_from_forgery :except => :create
filter_parameter_logging :password
@@ -1,4 +1,5 @@
class Clearance::UsersController < ApplicationController
+ unloadable
before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
filter_parameter_logging :password

0 comments on commit 9e669e4

Please sign in to comment.