FIX: Use correct parameter for error description

This commit is contained in:
David Taylor 2018-11-16 18:19:01 +00:00
parent e9c86e6822
commit 923df4d39d
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ module ::OmniAuth
end
def callback_phase
if request.params["error"] && request.params["error_reason"] && response = options.error_handler.call(request.params["error"], request.params["error_reason"])
if request.params["error"] && request.params["error_description"] && response = options.error_handler.call(request.params["error"], request.params["error_description"])
return redirect(response)
end
discover! if options[:discovery]