X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/2cd580e147f550e4bbc99e89a20f40359c6b5940..caa57721c5e41cd31fb86a765f53f9302fb8039e:/admin.php diff --git a/admin.php b/admin.php index 62fd5ee..d602dcd 100644 --- a/admin.php +++ b/admin.php @@ -19,7 +19,6 @@ define ('JIRAFEAU_ROOT', dirname (__FILE__) . '/'); -require (JIRAFEAU_ROOT . 'lib/config.original.php'); require (JIRAFEAU_ROOT . 'lib/settings.php'); require (JIRAFEAU_ROOT . 'lib/functions.php'); require (JIRAFEAU_ROOT . 'lib/lang.php'); @@ -70,7 +69,8 @@ else /* Check classic admin password authentification. */ if (isset ($_POST['admin_password']) && empty($cfg['admin_http_auth_user'])) { - if ($cfg['admin_password'] === $_POST['admin_password']) + if ($cfg['admin_password'] === $_POST['admin_password'] || + $cfg['admin_password'] === hash('sha256', $_POST['admin_password'])) $_SESSION['admin_auth'] = true; else {