mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Closes #55 - On Failure now conforms to Rack spec, sets omniauth.error.type and omniauth.error.strategy
This commit is contained in:
parent
8c6a06b27c
commit
e05300b5f2
1 changed files with 4 additions and 1 deletions
|
@ -103,7 +103,10 @@ module OmniAuth
|
|||
|
||||
def fail!(message_key, exception = nil)
|
||||
self.env['omniauth.error'] = exception
|
||||
OmniAuth.config.on_failure.call(self.env, message_key.to_sym)
|
||||
self.env['omniauth.error.type'] = message_key.to_sym
|
||||
self.env['omniauth.error.strategy'] = self
|
||||
|
||||
OmniAuth.config.on_failure.call(self.env)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue