diff --git a/core/Controller/AppPasswordController.php b/core/Controller/AppPasswordController.php index 1dbeaa66a4599..ee8ad99fd2fb2 100644 --- a/core/Controller/AppPasswordController.php +++ b/core/Controller/AppPasswordController.php @@ -16,6 +16,7 @@ use OCP\AppFramework\Http\Attribute\ApiRoute; use OCP\AppFramework\Http\Attribute\BruteForceProtection; use OCP\AppFramework\Http\Attribute\NoAdminRequired; +use OCP\AppFramework\Http\Attribute\NoTwoFactorRequired; use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired; use OCP\AppFramework\Http\Attribute\UseSession; use OCP\AppFramework\Http\DataResponse; @@ -204,6 +205,7 @@ public function confirmUserPassword(string $password): DataResponse { * 200: App password returned */ #[NoAdminRequired] + #[NoTwoFactorRequired] #[ApiRoute(verb: 'GET', url: '/getapppassword-onetime', root: '/core')] public function getAppPasswordWithOneTimePassword(): DataResponse { // Only allow with one-time app passwords