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)) {
*/
\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;
......
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