Permalink
Browse files

move call_app! out of credential error try/catch block.

  • Loading branch information...
1 parent fdd92db commit 6c4ca27f973fcd27b79fc7b78377a2edea46bf52 @pyu10055 pyu10055 committed Jan 25, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 oa-enterprise/README.rdoc
  2. +1 −1 oa-enterprise/lib/omniauth/strategies/ldap.rb
@@ -25,7 +25,7 @@ See OmniAuth::Strategies::CAS::Configuration for more configuration options.
== LDAP
-Use the LDAP strategy as a middleware in your applicaiton:
+Use the LDAP strategy as a middleware in your application:
require 'omniauth/enterprise'
use OmniAuth::Strategies::LDAP,
@@ -65,10 +65,10 @@ def callback_phase
@env['omniauth.auth'] = auth_hash
- call_app!
rescue Exception => e
fail!(:invalid_credentials, e)
end
+ call_app!
end
def auth_hash

0 comments on commit 6c4ca27

Please sign in to comment.