mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
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:
parent
649b229211
commit
dba818df7b
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue