From 979ebcc2fb65932eb7487c4d5d843516a0847908 Mon Sep 17 00:00:00 2001
From: Georg Pfuetzenreuter
Date: Fri, 21 Jun 2024 15:15:56 +0200
Subject: [PATCH] Avoid conflict between Auth methods
Resolve:
```
ERROR Piwik\FrontController Uncaught exception: Error:
Call to undefined method Piwik\Plugins\Login\Auth::setForceLogin()
in /srv/www/matomo/plugins/LoginOIDC/Controller.php:431
```
It seems it loaded the methods from Piwik\Auth instead of
Piwik\Plugins\LoginOIDC\OIDCAuth - which worked for getLogin()
(which exists in both files), but failed at setForceLogin()
(which only exists in the latter).
Signed-off-by: Georg Pfuetzenreuter
---
Controller.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/Controller.php b/Controller.php
index 4891524..3c0515b 100644
--- a/Controller.php
+++ b/Controller.php
@@ -11,7 +11,6 @@
use Exception;
use Piwik\Access;
-use Piwik\Auth;
use Piwik\Common;
use Piwik\Config;
use Piwik\Container\StaticContainer;