fix(login): Do not target PublicPage attribute as it does not exists

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2025-03-05 12:49:28 +01:00
parent 649b229211
commit dba818df7b
No known key found for this signature in database

View file

@ -12,7 +12,6 @@ use OC\Core\Controller\ClientFlowLoginV2Controller;
use OCP\AppFramework\Middleware;
use OCP\ISession;
use OCP\IUserSession;
use ReflectionMethod;
// Will close the session if the user session is ephemeral.
// Happens when the user logs in via the login flow v2.
@ -36,11 +35,6 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
return;
}
$reflectionMethod = new ReflectionMethod($controller, $methodName);
if (!empty($reflectionMethod->getAttributes('PublicPage'))) {
return;
}
if ($this->reflector->hasAnnotation('PublicPage')) {
return;
}