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

This commit is contained in:
Ping Yu 2011-01-24 21:08:38 -06:00
parent fdd92dba07
commit 6c4ca27f97
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -65,10 +65,10 @@ module OmniAuth
@env['omniauth.auth'] = auth_hash
call_app!
rescue Exception => e
fail!(:invalid_credentials, e)
end
call_app!
end
def auth_hash