Skip to content

Commit 7faff3f

Browse files
committed
add comment about improving when registerRedirect is called
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 751a197 commit 7faff3f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public function boot(IBootContext $context): void {
8787
}
8888

8989
private function registerRedirect(IRequest $request, IURLGenerator $urlGenerator, SettingsService $settings, ProviderMapper $providerMapper): void {
90+
// TODO when min supported version is >=28 :
91+
// run this in a listener of OCP\AppFramework\Http\Events\BeforeLoginTemplateRenderedEvent
92+
// to avoid doing useless stuff on data requests and template requests that are not the login page
93+
9094
$providers = $this->getCachedProviders($providerMapper);
9195
$redirectUrl = $request->getParam('redirect_url');
9296

0 commit comments

Comments
 (0)