Nextcloud PHP API (master)

PasswordConfirmationRequired
in package

Attribute for controller methods that require password confirmation, if supported by the active authentication backend.

The exact enforcement behavior depends on the password confirmation middleware.

In non-strict mode, this normally relies on a recent prior confirmation, currently defined by the middleware as within the last 30 minutes.

In strict mode, confirmation is attempted as part of the current request. Credentials must be provided via Basic HTTP authentication.

Tags
since
27.0.0
Attributes
#[Attribute]

Table of Contents

Properties

$strict  : bool

Methods

__construct()  : mixed
getStrict()  : bool
Returns whether password confirmation must happen during the current request.

Properties

Methods

__construct()

public __construct([bool $strict = false ]) : mixed
Parameters
$strict : bool = false

Whether password confirmation must happen as part of the current request instead of relying on a recent prior confirmation.

Tags
since
31.0.0

getStrict()

Returns whether password confirmation must happen during the current request.

public getStrict() : bool
Tags
since
31.0.0
Return values
bool
On this page

Search results