From 49ee3235d04d849ae81cd75fa0f615b9a6094478 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 13 Feb 2013 00:26:15 +0100 Subject: [PATCH] Removed check for identical passwords Closes #1127 --- .../acp/form/MasterPasswordInitForm.class.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/MasterPasswordInitForm.class.php b/wcfsetup/install/files/lib/acp/form/MasterPasswordInitForm.class.php index b0c31d7e73..019bd62752 100755 --- a/wcfsetup/install/files/lib/acp/form/MasterPasswordInitForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MasterPasswordInitForm.class.php @@ -82,22 +82,6 @@ class MasterPasswordInitForm extends MasterPasswordForm { throw new UserInputException('masterPassword', 'notSecure'); } - // search for identical admin passwords - $sql = "SELECT password, salt - FROM wcf".WCF_N."_user - WHERE userID IN ( - SELECT userID - FROM wcf".WCF_N."_user_to_group - WHERE groupID = 4 - )"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(); - while ($row = $statement->fetchArray()) { - if (StringUtil::getDoubleSaltedHash($this->masterPassword, $row['salt']) == $row['password']) { - throw new UserInputException('masterPassword', 'notSecure'); - } - } - // confirm master password if (empty($this->confirmMasterPassword)) { throw new UserInputException('confirmMasterPassword'); -- 2.20.1