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 --- config/config.sample.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config') diff --git a/config/config.sample.php b/config/config.sample.php index 5792381e4d7..5c5ac3399b8 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -305,6 +305,15 @@ $CONFIG = [ */ 'auth.webauthn.enabled' => true, +/** + * By default the login form is always available. There are cases (SSO) where an + * admin wants to avoid users entering their credentials to the system if the SSO + * app is unavailable. + * + * This will show an error. But the the direct login still works with adding ?direct=1 + */ +'hide_login_form' => false, + /** * The directory where the skeleton files are located. These files will be * copied to the data directory of new users. Leave empty to not copy any -- cgit v1.2.3