Skip to content

Commit

Permalink
sina
Browse files Browse the repository at this point in the history
  • Loading branch information
he9qi authored and sferik committed May 24, 2011
1 parent 795d965 commit 0e07f3f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions oa-oauth/lib/omniauth/strategies/tsina.rb
Expand Up @@ -66,6 +66,13 @@ def request_phase
rescue ::Timeout::Error => e
fail!(:timeout, e)
end

# MonkeyPath to symbolize tina parameters
def callback_phase
session[:oauth].symbolize_keys!
session[:oauth][name.to_sym].symbolize_keys! if session[:oauth][name.to_sym]
super
end

def user_hash
# http://api.t.sina.com.cn/users/show/:id.json?source=appkey
Expand Down

0 comments on commit 0e07f3f

Please sign in to comment.