From cd4701faf0f695fb6a4fa920df5a5e2b53e817df Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Sun, 5 Jul 2020 10:26:31 +0200 Subject: [PATCH] Fix checking user status in RegisterNewActivationCodeForm --- .../files/lib/form/RegisterNewActivationCodeForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php b/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php index 84dd0affe7..36be3ecfd1 100644 --- a/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterNewActivationCodeForm.class.php @@ -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'); } -- 2.20.1