aboutsummaryrefslogtreecommitdiff
path: root/srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-07-27 10:05:23 +0200
commit5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch)
tree39a1a4629749056191c05dfd899f931701b7acf3 /srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php
parent5afd237bbd22028b85532b8c0b3fcead49a00764 (diff)
downloadft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.gz
ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.bz2
ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.zip
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php')
-rw-r--r--srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php b/srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php
deleted file mode 100644
index 721d602..0000000
--- a/srcs/phpmyadmin/libraries/classes/Plugins/TwoFactor/Simple.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/* vim: set expandtab sw=4 ts=4 sts=4: */
-/**
- * Second authentication factor handling
- *
- * @package PhpMyAdmin
- */
-declare(strict_types=1);
-
-namespace PhpMyAdmin\Plugins\TwoFactor;
-
-use PhpMyAdmin\Plugins\TwoFactorPlugin;
-use PhpMyAdmin\Template;
-
-/**
- * Simple two-factor authentication auth asking just for confirmation.
- *
- * This has no practical use, but can be used for testing.
- *
- * @package PhpMyAdmin
- */
-class Simple extends TwoFactorPlugin
-{
- /**
- * @var string
- */
- public static $id = 'simple';
-
- /**
- * Checks authentication, returns true on success
- *
- * @return boolean
- */
- public function check()
- {
- return isset($_POST['2fa_confirm']);
- }
-
- /**
- * Renders user interface to enter two-factor authentication
- *
- * @return string HTML code
- */
- public function render()
- {
- return $this->template->render('login/twofactor/simple');
- }
-
- /**
- * Get user visible name
- *
- * @return string
- */
- public static function getName()
- {
- return __('Simple two-factor authentication');
- }
-
- /**
- * Get user visible description
- *
- * @return string
- */
- public static function getDescription()
- {
- return __('For testing purposes only!');
- }
-}