Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(login): Properly target public page with attribute
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and backportbot[bot] committed Mar 5, 2025
commit fb41438db1a412d4766faf76fb32939f8d76f7a4
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use OC\AppFramework\Utility\ControllerMethodReflector;
use OC\Core\Controller\ClientFlowLoginV2Controller;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Middleware;
use OCP\ISession;
use OCP\IUserSession;
Expand Down Expand Up @@ -38,7 +39,7 @@ public function beforeController(Controller $controller, string $methodName) {
}

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

Expand Down
Loading