From d1bb19efca8e35885e1c2f0931d6171fce8cf74e Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Mon, 14 Apr 2014 09:42:04 +0200 Subject: [PATCH] fix csrf when strategy is :null_session or :reset_session, fixes #457 --- app/controllers/devise/invitations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/devise/invitations_controller.rb b/app/controllers/devise/invitations_controller.rb index 46710f2a..8049eee6 100644 --- a/app/controllers/devise/invitations_controller.rb +++ b/app/controllers/devise/invitations_controller.rb @@ -64,7 +64,7 @@ def accept_resource end def current_inviter - @current_inviter ||= authenticate_inviter! + authenticate_inviter! end def has_invitations_left?