From 9365e3ca949c95ff3788764c9e35a6b3adc64bf8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 30 Oct 2014 10:36:02 +0100 Subject: [PATCH] Remove the setup token from disk upon completion of the wizard refs #7163 --- library/Icinga/Application/WebSetup.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Icinga/Application/WebSetup.php b/library/Icinga/Application/WebSetup.php index 309cd93ea..2e561407f 100644 --- a/library/Icinga/Application/WebSetup.php +++ b/library/Icinga/Application/WebSetup.php @@ -232,6 +232,11 @@ class WebSetup extends Wizard implements SetupWizard { parent::clearSession(); $this->getPage('setup_modules')->clearSession(); + + $tokenPath = Config::resolvePath('setup.token'); + if (file_exists($tokenPath)) { + @unlink($tokenPath); + } } /**