From e653762bb24be081f407b257127399d7831a056d Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 29 Oct 2018 23:05:34 +0100 Subject: [PATCH] only call handleApacheAuth() if we login via environment variables Signed-off-by: Bjoern Schiessle --- appinfo/app.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/appinfo/app.php b/appinfo/app.php index cb4ccd425..f29ab5b39 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -53,7 +53,6 @@ ); $userBackend->registerBackends(\OC::$server->getUserManager()->getBackends()); OC_User::useBackend($userBackend); -OC_User::handleApacheAuth(); // Setting up the one login config may fail, if so, do not catch the requests later. $returnScript = false; @@ -74,6 +73,10 @@ return; } +if ($type === 'environment-variable') { + OC_User::handleApacheAuth(); +} + if($returnScript === true) { return; }