mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 03:04:35 -04:00
fix(login): Properly target public page with attribute
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
3de33eab54
commit
862265f1cc
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ namespace OC\AppFramework\Middleware;
|
|||
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;
|
||||
|
|
@ -38,7 +39,7 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
|
|||
}
|
||||
|
||||
$reflectionMethod = new ReflectionMethod($controller, $methodName);
|
||||
if (!empty($reflectionMethod->getAttributes('PublicPage'))) {
|
||||
if (!empty($reflectionMethod->getAttributes(PublicPage::class))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue