PHP Class Mpociot\Reauthenticate\ReauthLimiter

Mostra file Open project: mpociot/reauthenticate Class Usage Examples

Protected Properties

Property Type Description
$key string The Reauthentication key.
$reauthTime integer Number of minutes a successful Reauthentication is valid.
$request Illuminate\Http\Request The HTTP request.

Public Methods

Method 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 method

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

attempt() public method

Attempt to Reauthenticate the user.
public attempt ( string $password ) : boolean
$password string
return boolean

check() public method

Validate a reauthenticated Session data.
public check ( ) : boolean
return boolean

Property Details

$key protected_oe property

The Reauthentication key.
protected string $key
return string

$reauthTime protected_oe property

Number of minutes a successful Reauthentication is valid.
protected int $reauthTime
return integer

$request protected_oe property

The HTTP request.
protected Request,Illuminate\Http $request
return Illuminate\Http\Request