Removed check for identical passwords
authorAlexander Ebert <ebert@woltlab.com>
Tue, 12 Feb 2013 23:26:15 +0000 (00:26 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 12 Feb 2013 23:26:15 +0000 (00:26 +0100)
Closes #1127

wcfsetup/install/files/lib/acp/form/MasterPasswordInitForm.class.php

index b0c31d7e73cb8fd8a2d6ff3f9a6c31922de48433..019bd627529314e3f2094dc25ccef1057ba8fd3a 100755 (executable)
@@ -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');