From: Roland Häder Date: Thu, 15 May 2008 20:01:11 +0000 (+0000) Subject: Install fix X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=3aeddfb08e3fa6c1bfbd54084523eaa3e06175ba Install fix --- 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);