Skip to content

Commit

Permalink
avoid csrf errors with github logins
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jul 19, 2016
1 parent 3f6e93b commit 19a2ae5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
class SessionsController < ApplicationController
unless Rails.env.production?
skip_before_action :verify_authenticity_token, only: [:create]
end
skip_before_action :verify_authenticity_token, only: [:create, :failure]

def new
session[:pre_login_destination] = params[:return_to] if params[:return_to].present?
Expand Down

0 comments on commit 19a2ae5

Please sign in to comment.