diff --git a/core/Controller/AppPasswordController.php b/core/Controller/AppPasswordController.php index da153ded274a7..5dcf9b8c4e72c 100644 --- a/core/Controller/AppPasswordController.php +++ b/core/Controller/AppPasswordController.php @@ -17,6 +17,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; @@ -205,6 +206,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