Skip to content

Commit

Permalink
Allow SSL callbacks from all providers
Browse files Browse the repository at this point in the history
Fixes #99
  • Loading branch information
radar committed Aug 27, 2013
1 parent 9893492 commit 3d689ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/spree/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Spree::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def self.provides_callback_for(*providers)
providers.each do |provider|
class_eval %Q{
ssl_allowed :#{provider}
def #{provider}
if request.env["omniauth.error"].present?
flash[:error] = t("devise.omniauth_callbacks.failure", :kind => auth_hash['provider'], :reason => t(:user_was_not_valid))
Expand Down

0 comments on commit 3d689ae

Please sign in to comment.