From 3aeddfb08e3fa6c1bfbd54084523eaa3e06175ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 15 May 2008 20:01:11 +0000 Subject: [PATCH] Install fix --- inc/modules/admin.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/inc/modules/admin.php b/inc/modules/admin.php index c364ae283a..c0e1fdf48a 100644 --- a/inc/modules/admin.php +++ b/inc/modules/admin.php @@ -56,11 +56,8 @@ if (!isBooleanConstantAndTrue('admin_registered')) { // Admin is not registered so we have to inform the user if ((isset($_POST['ok'])) && ((empty($_POST['login'])) || (empty($_POST['pass'])) || (strlen($_POST['pass']) < 4))) $_POST['ok'] = "***"; if ((isset($_POST['ok'])) && ($_POST['ok'] != "***")) { - // Hash the password with our new generateHash() function - $hashedPass = generateHash($_POST['pass']); - - // If the password has not been hashed we have to fall-back to md5() - if ($hashedPass == $_POST['pass']) $hashedPass = md5($hashedPass); + // Hash the password with the old function because we are here in install mode + $hashedPass = md5($hashedPass); // Do registration $ret = REGISTER_ADMIN($_POST['login'], $hashedPass); -- 2.30.2