]> git.openstreetmap.org Git - rails.git/commitdiff
Pass any AX response to the callback along with the SReg response
authorTom Hughes <tom@compton.nu>
Sun, 3 Oct 2010 13:24:45 +0000 (14:24 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 3 Oct 2010 13:24:45 +0000 (14:24 +0100)
vendor/plugins/open_id_authentication/lib/open_id_authentication.rb

index b3550497626677a64ab6b4dea06d577f6d923ea0..ed875cd68f871e47c6f37a15d4c36c4f67550c1d 100644 (file)
@@ -112,7 +112,8 @@ module OpenIdAuthentication
       case response.status
       when OpenID::Consumer::SUCCESS
         yield Result[:successful], identifier,
-          OpenID::SReg::Response.from_success_response(response)
+          OpenID::SReg::Response.from_success_response(response),
+          OpenID::AX::FetchResponse.from_success_response(response)
       when :missing
         yield Result[:missing], identifier, nil
       when :invalid