Revert "FIX: If login is required, redirect to the `/login` route instead of root"
This reverts commit 8a8dec550b
.
This commit is contained in:
parent
8a8dec550b
commit
ca965f83c3
|
@ -54,9 +54,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
unless @origin.present?
|
unless @origin.present?
|
||||||
@origin = SiteSetting.login_required? ?
|
@origin = Discourse.base_uri("/")
|
||||||
Discourse.base_uri("/login") :
|
|
||||||
Discourse.base_uri("/")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if @auth_result.failed?
|
if @auth_result.failed?
|
||||||
|
|
Loading…
Reference in New Issue