Commit 7a68142320bbfa6f2261a79775c14bc50c9bc6f4
1 parent
1ac8eb77
Exists in
master
and in
1 other branch
Fixed data['nickname'] to receive uid, and add sinatra to development dependence
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
Gemfile
lib/omniauth/strategies/remote_user.rb
... | ... | @@ -73,7 +73,8 @@ module OmniAuth |
73 | 73 | user_data = request.env['HTTP_REMOTE_USER_DATA'] |
74 | 74 | if user_data |
75 | 75 | data = JSON.parse(user_data) |
76 | - data['nickname'] = data['firstname'] = data['name'].split()[0] | |
76 | + data['nickname'] = uid | |
77 | + data['firstname'] = data['name'].split()[0] | |
77 | 78 | data['lastname'] = data['name'].split()[1] |
78 | 79 | data |
79 | 80 | else | ... | ... |