From 814a0a46fe9b758091e2fd9f8034046366c53a6d Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Tue, 6 Dec 2011 21:57:03 +0200 Subject: [PATCH] Fix OpenID init. Refs #2261 --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 14aea50b5..45d6f270b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -50,7 +50,7 @@ class User < ActiveRecord::Base def new_with_session(params, session) super.tap do |user| if data = session["devise.omniauth_data"] - if info = data['user_info'] and info.present? + if info = data['info'] and info.present? user.email = info['email'].presence if user.email.blank? user.uname ||= info['nickname'].presence || info['username'].presence user.name ||= info['name'].presence || [info['first_name'], info['last_name']].join(' ').strip