diff options
| author | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-11 11:49:53 +0100 |
|---|---|---|
| committer | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-11 11:49:53 +0100 |
| commit | 45fc21386a05eef391ce1469e5a40b521fe94e7f (patch) | |
| tree | a72121ef68bc246558abb1065cad0a8d51ddc993 /admin/inc/auth.inc.php | |
| parent | 81e974e61ab010e12e60174be4e07f9bdeb933f9 (diff) | |
| download | planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar.gz planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar.bz2 planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.tar.xz planet-45fc21386a05eef391ce1469e5a40b521fe94e7f.zip | |
Fix include path & bug
Diffstat (limited to 'admin/inc/auth.inc.php')
| -rw-r--r-- | admin/inc/auth.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/inc/auth.inc.php b/admin/inc/auth.inc.php index 0acf934..0305b13 100644 --- a/admin/inc/auth.inc.php +++ b/admin/inc/auth.inc.php @@ -6,7 +6,7 @@ if (!class_exists('Planet')) { require __DIR__.'/../../vendor/autoload.php'; } -if (!Planet::authenticateUser($_COOKIE['auth'], $password)) { +if (!Planet::authenticateUser($_COOKIE['auth'] ?? '', $password)) { setcookie('auth', '', time() - 3600); header('Location: login.php'); die(); |
