Skip to content

Commit cf374d7

Browse files
committed
Converts 'user_info' to 'info'. Thanks, Aaandre.
1 parent abec8d1 commit cf374d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def current_user
4444

4545
get '/auth/:name/callback' do
4646
auth = request.env["omniauth.auth"]
47-
user = User.first_or_create({ :uid => auth["uid"]}, {
48-
:uid => auth["uid"],
49-
:nickname => auth["user_info"]["nickname"],
50-
:name => auth["user_info"]["name"],
47+
user = User.first_or_create({ :uid => auth["uid"]}, {
48+
:uid => auth["uid"],
49+
:nickname => auth["info"]["nickname"],
50+
:name => auth["info"]["name"],
5151
:created_at => Time.now })
5252
session[:user_id] = user.id
5353
redirect '/'

0 commit comments

Comments
 (0)