From 5d15e99649b35c18a27e110b161ef72938f8ef84 Mon Sep 17 00:00:00 2001 From: lexer Date: Fri, 29 Apr 2011 12:00:18 +0600 Subject: [PATCH] add empty user data --- oa-oauth/lib/omniauth/strategies/mailru.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/oa-oauth/lib/omniauth/strategies/mailru.rb b/oa-oauth/lib/omniauth/strategies/mailru.rb index b9bc02a..16fd8b1 100644 --- a/oa-oauth/lib/omniauth/strategies/mailru.rb +++ b/oa-oauth/lib/omniauth/strategies/mailru.rb @@ -35,6 +35,7 @@ module OmniAuth end def user_data + @data = {} #@data ||= MultiJson.decode(@access_token.get("http://www.appsmail.ru/platform/api?method=users.getInfo&app_id=#{api_key}&session_key=#{@access_token['access_token']}&sig=#{secret_key}"))[0] #@data ||= MultiJson.decode(@access_token.get("http://www.appsmail.ru/platform/api?method=users.getInfo"))[0] end