Skip to content

Commit 8def948

Browse files
committed
fix(login): Do not target PublicPage attribute as it does not exists
Signed-off-by: Louis Chemineau <louis@chmn.me> [skip ci] Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent 649b229 commit 8def948

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/private/AppFramework/Middleware/FlowV2EphemeralSessionsMiddleware.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use OCP\AppFramework\Middleware;
1313
use OCP\ISession;
1414
use OCP\IUserSession;
15-
use ReflectionMethod;
1615

1716
// Will close the session if the user session is ephemeral.
1817
// Happens when the user logs in via the login flow v2.
@@ -36,11 +35,6 @@ public function beforeController($controller, $methodName) {
3635
return;
3736
}
3837

39-
$reflectionMethod = new ReflectionMethod($controller, $methodName);
40-
if (!empty($reflectionMethod->getAttributes('PublicPage'))) {
41-
return;
42-
}
43-
4438
if ($this->reflector->hasAnnotation('PublicPage')) {
4539
return;
4640
}

0 commit comments

Comments
 (0)