Browse files

Converts 'user_info' to 'info'. Thanks, Aaandre.

  • Loading branch information...
1 parent abec8d1 commit cf374d70a64e307b3ea71867901cab1403ca2a19 @charliepark committed Jan 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app.rb
View
8 app.rb
@@ -44,10 +44,10 @@ def current_user
get '/auth/:name/callback' do
auth = request.env["omniauth.auth"]
- user = User.first_or_create({ :uid => auth["uid"]}, {
- :uid => auth["uid"],
- :nickname => auth["user_info"]["nickname"],
- :name => auth["user_info"]["name"],
+ user = User.first_or_create({ :uid => auth["uid"]}, {
+ :uid => auth["uid"],
+ :nickname => auth["info"]["nickname"],
+ :name => auth["info"]["name"],
:created_at => Time.now })
session[:user_id] = user.id
redirect '/'

0 comments on commit cf374d7

Please sign in to comment.