From 4076dfb0194a00f4795e87f2ae84e626a174bd06 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 3 Mar 2021 11:18:33 +0100 Subject: Allow admins to disable the login form In case they want to not allow this because they use SSO (and do not want the users to enter their credentials there by accident). ?direct=1 still works. Signed-off-by: Roeland Jago Douma --- core/Controller/LoginController.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/Controller') diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index 7ec8f4843e8..e466f029ec1 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -191,6 +191,8 @@ class LoginController extends Controller { $this->initialStateService->provideInitialState('core', 'webauthn-available', $this->webAuthnManager->isWebAuthnAvailable()); + $this->initialStateService->provideInitialState('core', 'hideLoginForm', $this->config->getSystemValueBool('hide_login_form', false)); + // OpenGraph Support: http://ogp.me/ Util::addHeader('meta', ['property' => 'og:title', 'content' => Util::sanitizeHTML($this->defaults->getName())]); Util::addHeader('meta', ['property' => 'og:description', 'content' => Util::sanitizeHTML($this->defaults->getSlogan())]); -- cgit v1.2.3