From 701ccf54dda31eba0af23f3625f8cb46a7444cd5 Mon Sep 17 00:00:00 2001 From: Pavel Chipiga Date: Tue, 6 Dec 2011 21:45:25 +0200 Subject: [PATCH] Fix OpenID registration bug. Refs #2261 --- app/controllers/users/omniauth_callbacks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 1e1e76f29..55665e78d 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -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