diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index c6017c3ef21..8809e94d4c0 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -54,9 +54,7 @@ class Users::OmniauthCallbacksController < ApplicationController end unless @origin.present? - @origin = SiteSetting.login_required? ? - Discourse.base_uri("/login") : - Discourse.base_uri("/") + @origin = Discourse.base_uri("/") end if @auth_result.failed?