Fix bad merge from 5.3 to 5.4
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 14 Oct 2021 13:03:35 +0000 (15:03 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 14 Oct 2021 13:03:35 +0000 (15:03 +0200)
Commit f394421c0cc7e8879007092e40e540b2fd1118c1 was incorrectly applied.

wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php

index 8c9e8b5502d4921be11f6f8f4a38d68fc23f649c..e76e725f2da51b0c6d5e9198abebbd36560a03bf 100644 (file)
@@ -104,10 +104,6 @@ class RegisterNewActivationCodeForm extends AbstractForm
             throw new UserInputException('username', 'notFound');
         }
 
-        if ($this->user->isEmailConfirmed()) {
-            throw new UserInputException('username', 'alreadyEnabled');
-        }
-
         if (!empty($this->user->getBlacklistMatches())) {
             throw new PermissionDeniedException();
         }