diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index 786aff8..eed50e4 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -5,7 +5,8 @@ module Users user = User.find_or_create_by(email: auth.info.email, name: auth.info.name, provider: auth.provider, uid: auth.uid) # Given colab works properly, since the user is always found or redirected, there is no chanche of an invalid user - sign_in_and_redirect user + sign_in(:user, user) + redirect_to root_path end alias_method :RemoteUser, :all -- libgit2 0.21.2