Fix checking user status in RegisterNewActivationCodeForm
authorjoshuaruesweg <ruesweg@woltlab.com>
Sun, 5 Jul 2020 08:26:31 +0000 (10:26 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Sun, 5 Jul 2020 08:27:22 +0000 (10:27 +0200)
wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php

index 84dd0affe73bb08ff8db9ed79e6162bb3ba22350..36be3ecfd13a9f6dd673859d82555766feeae4cf 100644 (file)
@@ -89,7 +89,7 @@ class RegisterNewActivationCodeForm extends AbstractForm {
                        throw new UserInputException('username', 'notFound');
                }
                
-               if ($this->user->activationCode == 0) {
+               if ($this->user->isEmailConfirmed()) {
                        throw new UserInputException('username', 'alreadyEnabled');
                }