From 535110c9e617b0ffe6e58b25e1f4998add856fd7 Mon Sep 17 00:00:00 2001 From: Jan Schuppik Date: Mon, 28 Jul 2025 12:03:11 +0200 Subject: [PATCH] Delete: tryout page --- application/controllers/TryoutController.php | 60 -------------------- 1 file changed, 60 deletions(-) delete mode 100644 application/controllers/TryoutController.php diff --git a/application/controllers/TryoutController.php b/application/controllers/TryoutController.php deleted file mode 100644 index 33245bea1..000000000 --- a/application/controllers/TryoutController.php +++ /dev/null @@ -1,60 +0,0 @@ -addContent( - HtmlElement::create( - 'h1', - null, - $this->translate('Tryout Section') - ) - ); - - -// $clock = new PsrClock(); -// $otp = TOTP::generate($clock); - -// $otp->getQrCodeUri() -// $secret = $otp->getSecret(); -// $secret = '73P442OENPZ5ZUSIWR6VGHPD4XKANATHJYFCD7SVXR2KXBOS3PJY3FHCPBM3NLAB4NMOCUP7ZC53KEQJWLUCTKQXHTIGFZOVQC77M2Y'; -// $otp = TOTP::createFromSecret($secret, $clock); - - $totp = new Totp('icingaadmi'); -// if ($totp->userHasSecret()) { - $secret = $totp->getSecret(); - $tmpSecret = $totp->generateSecret()->getTemporarySecret(); - $tmpSecret2 = $totp->generateSecret()->getTemporarySecret(); - - $this->addContent( - HtmlElement::create( - 'div', - null, - [ - HtmlElement::create('p', null, sprintf('The OTP secret is: %s', $secret)), - HtmlElement::create('p', null, sprintf('Temp OTP secret is: %s', $tmpSecret)), - HtmlElement::create('p', null, sprintf('Temp2 OTP secret is: %s', $tmpSecret2)), - HtmlElement::create('p', null, sprintf('The current OTP is: %s', $totp->getCurrentCode())) - ] - ) - ); -// } else { -// $this->addContent( -// HtmlElement::create( -// 'div', -// null, -// HtmlElement::create('p', null, 'No TOTP secret found for user icingaadmi') -// ) -// ); -// } - } -}