Permalink
Browse files

Fix failure flow

  • Loading branch information...
1 parent 77a3b60 commit 7fe6b7913653f1cd82ca78ae70f3701c2876e29b Jesse Stuart committed Oct 3, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/omniauth/strategies/tent.rb
@@ -46,10 +46,9 @@ def callback_phase
build_auth_hash!
call_app!
rescue AppAuthorizationCreateFailure => e
- create_app
- build_uri_and_redirect!
+ fail!(:app_auth_create_failure, e)
rescue StateMissmatchError => e
- fail!(:state_missmatch)
+ fail!(:state_missmatch, e)
end
private

0 comments on commit 7fe6b79

Please sign in to comment.