Skip to content

Commit e0b7f72

Browse files
Merge pull request #62449 from nextcloud/backport/62448/stable34
[stable34] fix(onetime-qrcode): Fix onetime QR code with 2FA enable
2 parents df6e947 + ec67882 commit e0b7f72

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/Controller/AppPasswordController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use OCP\AppFramework\Http\Attribute\ApiRoute;
1717
use OCP\AppFramework\Http\Attribute\BruteForceProtection;
1818
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
19+
use OCP\AppFramework\Http\Attribute\NoTwoFactorRequired;
1920
use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
2021
use OCP\AppFramework\Http\Attribute\UseSession;
2122
use OCP\AppFramework\Http\DataResponse;
@@ -204,6 +205,7 @@ public function confirmUserPassword(string $password): DataResponse {
204205
* 200: App password returned
205206
*/
206207
#[NoAdminRequired]
208+
#[NoTwoFactorRequired]
207209
#[ApiRoute(verb: 'GET', url: '/getapppassword-onetime', root: '/core')]
208210
public function getAppPasswordWithOneTimePassword(): DataResponse {
209211
// Only allow with one-time app passwords

0 commit comments

Comments
 (0)