Reverted lost changes due to git init

This commit is contained in:
djpbessems 2019-01-16 18:01:30 +01:00
parent 606ce6b0e8
commit 95980727af

View File

@ -1,5 +1,11 @@
<?php
$confFile = '../lucidAuth.config.php';
if (!file_exists($confFile)) {
throw 'Missing config file. Please rename lucidAuth.config.php.example to lucidAuth.config.php and edit it to reflect your setup.' . PHP_EOL;
}
$settings = include_once('../lucidAuth.config.php');
function authenticateLDAP (string $username, string $password) {
global $settings;
@ -42,7 +48,7 @@ function storeToken (string $username, string $password, object $cookie) {
}
function retrieveToken (string $username, ) {
function retrieveToken (string $username, string $foo) {
global $settings;
}
@ -51,7 +57,9 @@ function validateCookie (int $expiration, string $username, string $securetoken)
# $_COOKIE['Exp'], $_COOKIE['Sub'], $_COOKIE['JWT']
global $settings;
If ($expiration > )
If ($expiration > time()) {
#moo
}
}
?>