X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/2cd580e147f550e4bbc99e89a20f40359c6b5940..145ca7860e1b2c33b6a92efe606a1b75b20a9cb3:/admin.php diff --git a/admin.php b/admin.php index 62fd5ee..bfbd123 100644 --- a/admin.php +++ b/admin.php @@ -70,7 +70,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 {