Skip to content

Commit

Permalink
Merge pull request #51290 from nextcloud/backport/51280/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(login): Do not target PublicPage attribute as it does not exists
  • Loading branch information
AndyScherzinger authored Mar 5, 2025
2 parents 649b229 + dba818d commit 5549bac
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
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.
Expand All @@ -36,11 +35,6 @@ public function beforeController($controller, $methodName) {
return;
}

$reflectionMethod = new ReflectionMethod($controller, $methodName);
if (!empty($reflectionMethod->getAttributes('PublicPage'))) {
return;
}

if ($this->reflector->hasAnnotation('PublicPage')) {
return;
}
Expand Down

0 comments on commit 5549bac

Please sign in to comment.