From: Alexander Ebert Date: Tue, 12 Feb 2013 23:26:15 +0000 (+0100) Subject: Removed check for identical passwords X-Git-Tag: 2.0.0_Beta_1~489 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49ee3235d04d849ae81cd75fa0f615b9a6094478;p=GitHub%2FWoltLab%2FWCF.git Removed check for identical passwords Closes #1127 --- 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');