Reverted lost changes due to git init
This commit is contained in:
parent
606ce6b0e8
commit
95980727af
@ -1,5 +1,11 @@
|
|||||||
<?php
|
<?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) {
|
function authenticateLDAP (string $username, string $password) {
|
||||||
global $settings;
|
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;
|
global $settings;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -51,7 +57,9 @@ function validateCookie (int $expiration, string $username, string $securetoken)
|
|||||||
# $_COOKIE['Exp'], $_COOKIE['Sub'], $_COOKIE['JWT']
|
# $_COOKIE['Exp'], $_COOKIE['Sub'], $_COOKIE['JWT']
|
||||||
global $settings;
|
global $settings;
|
||||||
|
|
||||||
If ($expiration > )
|
If ($expiration > time()) {
|
||||||
|
#moo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user