PHP Class Mpociot\Reauthenticate\ReauthLimiter

Afficher le fichier Open project: mpociot/reauthenticate Class Usage Examples

Protected Properties

Свойство Type Description
$key string The Reauthentication key.
$reauthTime integer Number of minutes a successful Reauthentication is valid.
$request Illuminate\Http\Request The HTTP request.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Http\Request $request, string $key = null ) Create a new reauth limiter instance.
attempt ( string $password ) : boolean Attempt to Reauthenticate the user.
check ( ) : boolean Validate a reauthenticated Session data.

Method Details

__construct() public méthode

Create a new reauth limiter instance.
public __construct ( Illuminate\Http\Request $request, string $key = null )
$request Illuminate\Http\Request
$key string

attempt() public méthode

Attempt to Reauthenticate the user.
public attempt ( string $password ) : boolean
$password string
Résultat boolean

check() public méthode

Validate a reauthenticated Session data.
public check ( ) : boolean
Résultat boolean

Property Details

$key protected_oe property

The Reauthentication key.
protected string $key
Résultat string

$reauthTime protected_oe property

Number of minutes a successful Reauthentication is valid.
protected int $reauthTime
Résultat integer

$request protected_oe property

The HTTP request.
protected Request,Illuminate\Http $request
Résultat Illuminate\Http\Request