Add exceptions for some actions
authorMarcel Werk <burntime@woltlab.com>
Thu, 21 Mar 2024 15:47:06 +0000 (16:47 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 21 Mar 2024 15:47:06 +0000 (16:47 +0100)
These actions are required for registration or general tasks.

wcfsetup/install/files/lib/http/middleware/CheckForForceLogin.class.php

index f5c8d6568447a95089ad1c612c606ea10853c195..acab8722563e55eb271c0909800a6458fc18fdba 100644 (file)
@@ -28,6 +28,11 @@ final class CheckForForceLogin implements MiddlewareInterface
     private const STATUS_CODE = 403;
 
     private const ALLOWED_CONTROLLERS = [
+        \wcf\action\BackgroundQueuePerformAction::class,
+        \wcf\action\CronjobPerformAction::class,
+        \wcf\action\EmailValidationAction::class,
+        \wcf\action\PaypalCallbackAction::class,
+        \wcf\action\UsernameValidationAction::class,
         \wcf\form\EmailActivationForm::class,
         \wcf\form\EmailNewActivationCodeForm::class,
         \wcf\form\LoginForm::class,