Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit cf374d70a64e307b3ea71867901cab1403ca2a19 1 parent abec8d1
Charlie Park authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 app.rb
8 app.rb
View
@@ -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 '/'
Please sign in to comment.
Something went wrong with that request. Please try again.