X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/94819539182ec00e4a35ecc95a5d9ca886d903cf..27fd0b6c4fda91b4d53236747dd64f02ff99337a:/admin.php?ds=inline diff --git a/admin.php b/admin.php index 62fd5ee..cb60580 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 {