Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Making the clearance controllers unloadable

  • Loading branch information...
commit 9e669e4bd98cac22129f3d40642068525844ffd2 1 parent 0b7dadf
@qrush qrush authored
View
1  app/controllers/clearance/confirmations_controller.rb
@@ -1,4 +1,5 @@
class Clearance::ConfirmationsController < ApplicationController
+ unloadable
before_filter :forbid_confirmed_user, :only => :new
before_filter :forbid_missing_token, :only => :new
View
1  app/controllers/clearance/passwords_controller.rb
@@ -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]
View
1  app/controllers/clearance/sessions_controller.rb
@@ -1,4 +1,5 @@
class Clearance::SessionsController < ApplicationController
+ unloadable
protect_from_forgery :except => :create
filter_parameter_logging :password
View
1  app/controllers/clearance/users_controller.rb
@@ -1,4 +1,5 @@
class Clearance::UsersController < ApplicationController
+ unloadable
before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
filter_parameter_logging :password
Please sign in to comment.
Something went wrong with that request. Please try again.