mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Remove the setup token from disk upon completion of the wizard
refs #7163
This commit is contained in:
parent
b9209daea5
commit
9365e3ca94
@ -232,6 +232,11 @@ class WebSetup extends Wizard implements SetupWizard
|
|||||||
{
|
{
|
||||||
parent::clearSession();
|
parent::clearSession();
|
||||||
$this->getPage('setup_modules')->clearSession();
|
$this->getPage('setup_modules')->clearSession();
|
||||||
|
|
||||||
|
$tokenPath = Config::resolvePath('setup.token');
|
||||||
|
if (file_exists($tokenPath)) {
|
||||||
|
@unlink($tokenPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user