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
Attributes
- #[Attribute]
Table of Contents
Properties
- $strict : bool
Methods
- __construct() : mixed
- getStrict() : bool
- Returns whether password confirmation must happen during the current request.
Properties
$strict
protected
bool
$strict
= false
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
getStrict()
Returns whether password confirmation must happen during the current request.
public
getStrict() : bool