PHP Class Bolt\AccessControl\Password

Author: Gawain Lynch ([email protected])
Datei anzeigen Open project: bolt/bolt Class Usage Examples

Protected Properties

Property Type Description
$app Silex\Application

Public Methods

Method Description
__construct ( Silex\Application $app )
resetPasswordConfirm ( string $token, string $remoteIP, Symfony\Component\EventDispatcher\Event $event ) : boolean Handle a password reset confirmation.
resetPasswordRequest ( string $username, string $remoteIP, Symfony\Component\EventDispatcher\Event $event ) : boolean Sends email with password request. Accepts email or username.
setRandomPassword ( string $username ) : string | boolean Set a random password for user.

Private Methods

Method Description
resetPasswordNotification ( Bolt\Storage\Entity\Users $userEntity, string $shadowPassword, string $shadowToken ) Send the password reset link notification to the user.

Method Details

__construct() public method

public __construct ( Silex\Application $app )
$app Silex\Application

resetPasswordConfirm() public method

Handle a password reset confirmation.
public resetPasswordConfirm ( string $token, string $remoteIP, Symfony\Component\EventDispatcher\Event $event ) : boolean
$token string
$remoteIP string
$event Symfony\Component\EventDispatcher\Event
return boolean

resetPasswordRequest() public method

Sends email with password request. Accepts email or username.
public resetPasswordRequest ( string $username, string $remoteIP, Symfony\Component\EventDispatcher\Event $event ) : boolean
$username string
$remoteIP string
$event Symfony\Component\EventDispatcher\Event
return boolean

setRandomPassword() public method

Set a random password for user.
public setRandomPassword ( string $username ) : string | boolean
$username string User specified by ID, username or email address.
return string | boolean New password or FALSE when no match for username.

Property Details

$app protected_oe property

protected Application,Silex $app
return Silex\Application