Skip to content

Commit 7054658

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(onetime-qrcode): Fix onetime QR code with 2FA enable
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent d7bee33 commit 7054658

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)