Skip to content
Snippets Groups Projects
Unverified Commit 276160e4 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo Committed by GitHub
Browse files

Substitute unnecessary multi-line comments with one-liners

parent b4c6200c
No related branches found
No related tags found
No related merge requests found
...@@ -35,9 +35,7 @@ if (!preg_match('@State=(.*)@', $returnTo, $matches)) { ...@@ -35,9 +35,7 @@ if (!preg_match('@State=(.*)@', $returnTo, $matches)) {
*/ */
\SimpleSAML\Auth\State::loadState(urldecode($matches[1]), 'exampleauth:External'); \SimpleSAML\Auth\State::loadState(urldecode($matches[1]), 'exampleauth:External');
/** // our list of users.
* Our list of users.
*/
$users = [ $users = [
'student' => [ 'student' => [
'password' => 'student', 'password' => 'student',
...@@ -55,11 +53,7 @@ $users = [ ...@@ -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; $badUserPass = false;
if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$username = (string) $_REQUEST['username']; $username = (string) $_REQUEST['username'];
...@@ -84,9 +78,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -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(); $config = \SimpleSAML\Configuration::getInstance();
$t = new \SimpleSAML\XHTML\Template($config, 'exampleauth:authenticate.twig'); $t = new \SimpleSAML\XHTML\Template($config, 'exampleauth:authenticate.twig');
$t->data['badUserPass'] = $badUserPass; $t->data['badUserPass'] = $badUserPass;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment