Fix OpenID registration bug. Refs #2261

This commit is contained in:
Pavel Chipiga 2011-12-06 21:45:25 +02:00
parent 3ab92c0281
commit 701ccf54dd
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
authentication.user = current_user
authentication.save
else # Register new user from session
session["devise.omniauth_data"] = env["omniauth.auth"]
session["devise.omniauth_data"] = env["omniauth.auth"].except('extra')
flash[:notice] = I18n.t "devise.omniauth_callbacks.register"
redirect_to new_user_registration_url
end