Permalink
Browse files

Make error parameter checking looser. Closes #58.

  • Loading branch information...
1 parent d8f16f0 commit 53380b934d86f0112daf6a833443d0763f3dae34 Michael Bleigh committed Oct 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 oa-oauth/lib/omniauth/strategies/oauth2.rb
@@ -50,7 +50,7 @@ def request_phase
end
def callback_phase
- if request.params['error']
+ if request.params['error'] || request.params['error_reason']
raise CallbackError.new(request.params['error'], request.params['error_description'] || request.params['error_reason'], request.params['error_uri'])
end

0 comments on commit 53380b9

Please sign in to comment.