Skip to content

Commit

Permalink
fixed typo in helpers, added csrf token update on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Drozdziel authored and Mariusz Drozdziel committed Apr 13, 2013
1 parent 7d344df commit 6044783
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class SessionsController < Devise::SessionsController
def destroy
signed_out = (Devise.sign_out_all_scopes ? sign_out : sign_out(resource_name))
render json: {
'csrf-param' => request_forgery_protection_token,
'csrf-token' => form_authenticity_token
}
end
end

0 comments on commit 6044783

Please sign in to comment.