Skip to content

Commit

Permalink
move call_app! out of credential error try/catch block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ping Yu committed Jan 25, 2011
1 parent fdd92db commit 6c4ca27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oa-enterprise/README.rdoc
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion oa-enterprise/lib/omniauth/strategies/ldap.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6c4ca27

Please sign in to comment.