FEATURE: we need admin login always
This commit is contained in:
parent
f1637fc11e
commit
4409a3072d
|
@ -345,7 +345,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def admin_login
|
def admin_login
|
||||||
unless SiteSetting.enable_sso && !current_user
|
if current_user
|
||||||
return redirect_to path("/")
|
return redirect_to path("/")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue