Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/Controller/AppPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -204,6 +205,7 @@
* 200: App password returned
*/
#[NoAdminRequired]
#[NoTwoFactorRequired]

Check failure on line 208 in core/Controller/AppPasswordController.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedAttributeClass

core/Controller/AppPasswordController.php:208:4: UndefinedAttributeClass: Attribute class OCP\AppFramework\Http\Attribute\NoTwoFactorRequired does not exist (see https://psalm.dev/241)
Comment thread
CarlSchwan marked this conversation as resolved.
Outdated
#[ApiRoute(verb: 'GET', url: '/getapppassword-onetime', root: '/core')]
public function getAppPasswordWithOneTimePassword(): DataResponse {
// Only allow with one-time app passwords
Expand Down
Loading