Revert "FIX: If login is required, redirect to the /login route instead of root"

This reverts commit 8a8dec550b.
This commit is contained in:
Robin Ward 2017-05-25 14:04:28 -04:00
parent 8a8dec550b
commit ca965f83c3

View File

@ -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?