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
|
||||
|
||||
unless @origin.present?
|
||||
@origin = SiteSetting.login_required? ?
|
||||
Discourse.base_uri("/login") :
|
||||
Discourse.base_uri("/")
|
||||
@origin = Discourse.base_uri("/")
|
||||
end
|
||||
|
||||
if @auth_result.failed?
|
||||
|
|
Loading…
Reference in New Issue