]> git.p6c8.net - jirafeau.git/blobdiff - admin.php
Translated using Weblate (Finnish)
[jirafeau.git] / admin.php
index 62fd5eee86eacbc8b3c9a7eb9adc30b6a5e00387..bfbd123be74372fc578da4852db2e96f0a601e5c 100644 (file)
--- 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
       {

patrick-canterino.de