From 276160e4ccbfbd662fe10d065643c295df4bc0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no> Date: Mon, 12 Aug 2019 09:23:36 +0200 Subject: [PATCH] Substitute unnecessary multi-line comments with one-liners --- modules/exampleauth/www/authpage.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/exampleauth/www/authpage.php b/modules/exampleauth/www/authpage.php index f59c707a1..21453f318 100644 --- a/modules/exampleauth/www/authpage.php +++ b/modules/exampleauth/www/authpage.php @@ -35,9 +35,7 @@ if (!preg_match('@State=(.*)@', $returnTo, $matches)) { */ \SimpleSAML\Auth\State::loadState(urldecode($matches[1]), 'exampleauth:External'); -/** - * Our list of users. - */ +// our list of users. $users = [ 'student' => [ 'password' => 'student', @@ -55,11 +53,7 @@ $users = [ ], ]; -/** - * Time to handle login responses. - * Since this is a dummy example, we accept any data. - */ - +// time to handle login responses; since this is a dummy example, we accept any data $badUserPass = false; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $username = (string) $_REQUEST['username']; @@ -84,9 +78,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { } } -/** - * If we get this far, we need to show the login page to the user. - */ +// if we get this far, we need to show the login page to the user $config = \SimpleSAML\Configuration::getInstance(); $t = new \SimpleSAML\XHTML\Template($config, 'exampleauth:authenticate.twig'); $t->data['badUserPass'] = $badUserPass; -- GitLab