X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/507c6d855f2a15a6d5509b27517ee60732006a3c..7991901d3f74146678b9f9c64b66aca2b3fae2e4:/admin.php?ds=sidebyside diff --git a/admin.php b/admin.php index 6560f10..54fcde1 100644 --- a/admin.php +++ b/admin.php @@ -65,8 +65,7 @@ if (php_sapi_name() == "cli") { } /* Test web password authentification. */ else if (!empty($cfg['admin_password']) && isset($_POST['admin_password'])) { - if ($cfg['admin_password'] === $_POST['admin_password'] || - $cfg['admin_password'] === hash('sha256', $_POST['admin_password'])) { + if ($cfg['admin_password'] === hash('sha256', $_POST['admin_password'])) { jirafeau_admin_session_start(); } else { require(JIRAFEAU_ROOT . 'lib/template/header.php'); @@ -161,6 +160,19 @@ if (php_sapi_name() == "cli") { +