This commit is contained in:
Thomas Portelange 2024-03-21 05:30:34 +13:00 committed by GitHub
commit 0cb1516de5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -589,8 +589,13 @@ class Security extends Controller implements TemplateGlobalProvider
$holderPage->URLSegment = 'Security';
// Disable ID-based caching of the log-in page by making it a random number
$holderPage->ID = -1 * random_int(1, 10000000);
if ($holderPage instanceof Controller) {
$controller = $holderPage;
} else {
$controller = ModelAsController::controller_for($holderPage);
}
$controller = ModelAsController::controller_for($holderPage);
$controller->setRequest($this->getRequest());
$controller->doInit();