Skip to content

Commit e657347

Browse files
Merge pull request #62448 from nextcloud/backport/62445/stable33
[stable33] fix(onetime-qrcode): Fix onetime QR code with 2FA enable
2 parents d7bee33 + 44b256e commit e657347

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;
@@ -200,6 +201,7 @@ public function confirmUserPassword(string $password): DataResponse {
200201
*
201202
* @return DataResponse<Http::STATUS_OK, array{apppassword: string}, array{}>
202203
* @throws OCSForbiddenException Creating app password is not allowed
204+
* @NoTwoFactorRequired
203205
*
204206
* 200: App password returned
205207
*/

0 commit comments

Comments
 (0)