This got broken, because it inherits from RegisterNewActivationForm and the “is
already enabled” validation was moved into a dedicated method within there. This
is a perfect example of why one should never inherit from controllers …
see
f394421c0cc7e8879007092e40e540b2fd1118c1
if (!$this->user->userID) {
throw new UserInputException('username', 'notFound');
}
-
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function validateActivationState() {
+ // check if user is already enabled
if ($this->user->reactivationCode == 0) {
throw new UserInputException('username', 'alreadyEnabled');
}