0
0
mirror of https://github.com/nextcloud/server.git synced 2025-01-01 09:52:41 +00:00
nextcloud_server/lib/public/AppFramework/Http/Attribute/PasswordConfirmationRequired.php
Louis Chemineau a2f2f7ce93
feat: Use inline password confirmation in external storage settings
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-11-28 11:01:54 +01:00

39 lines
694 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\AppFramework\Http\Attribute;
use Attribute;
/**
* Attribute for controller methods that require the password to be confirmed with in the last 30 minutes
*
* @since 27.0.0
*/
#[Attribute]
class PasswordConfirmationRequired {
/**
* @param bool $strict - Whether password confirmation needs to happen in the request.
*
* @since 31.0.0
*/
public function __construct(
protected bool $strict = false,
) {
}
/**
* @since 31.0.0
*/
public function getStrict(): bool {
return $this->strict;
}
}