mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
move call_app! out of credential error try/catch block.
This commit is contained in:
parent
fdd92dba07
commit
6c4ca27f97
2 changed files with 2 additions and 2 deletions
|
@ -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 @@ module OmniAuth
|
|||
|
||||
@env['omniauth.auth'] = auth_hash
|
||||
|
||||
call_app!
|
||||
rescue Exception => e
|
||||
fail!(:invalid_credentials, e)
|
||||
end
|
||||
call_app!
|
||||
end
|
||||
|
||||
def auth_hash
|
||||
|
|
Loading…
Reference in a new issue