2023-04-24 11:13:18 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-04-24 11:13:18 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Test\AppFramework\Middleware\Security\Mock;
|
|
|
|
|
|
2025-06-12 12:31:58 -04:00
|
|
|
use OCP\AppFramework\Controller;
|
2023-04-24 11:13:18 -04:00
|
|
|
use OCP\AppFramework\Http\Attribute\PasswordConfirmationRequired;
|
|
|
|
|
|
2025-06-12 12:31:58 -04:00
|
|
|
class PasswordConfirmationMiddlewareController extends Controller {
|
2023-04-24 11:13:18 -04:00
|
|
|
public function testNoAnnotationNorAttribute() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @TestAnnotation
|
|
|
|
|
*/
|
|
|
|
|
public function testDifferentAnnotation() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @PasswordConfirmationRequired
|
|
|
|
|
*/
|
|
|
|
|
public function testAnnotation() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[PasswordConfirmationRequired]
|
|
|
|
|
public function testAttribute() {
|
|
|
|
|
}
|
2024-03-01 12:37:47 -05:00
|
|
|
|
|
|
|
|
#[PasswordConfirmationRequired]
|
|
|
|
|
public function testSSO() {
|
|
|
|
|
}
|
2023-04-24 11:13:18 -04:00
|
|
|
}
|