PasswordBroker

PasswordBroker interface PasswordBroker (View source) Constants RESET_LINK_SENT Constant representing a successfully sent reminder. PASSWORD_RESET Constant representing a successfully reset password. INVALID_USER Constant representing the user not found response. INVALID_PASSWORD Constant representing an invalid password. INVALID_TOKEN Constant representing an invalid token.

PasswordBroker

PasswordBroker class PasswordBroker (View source) Constants REMINDER_SENT Constant representing a successfully sent reminder. PASSWORD_RESET Constant representing a successfully reset password. INVALID_USER Constant representing the user not found response. INVALID_PASSWORD Constant representing an invalid password. INVALID_TOKEN Constant representing an invalid token.

PasswordBroker::createToken()

string createToken(CanResetPassword $user) Create a new password reset token for the given user. Parameters CanResetPassword $user Return Value string

PasswordBroker::deleteToken()

void deleteToken(string $token) Delete the given password reset token. Parameters string $token Return Value void

PasswordBroker::getRepository()

TokenRepositoryInterface getRepository() Get the password reset token repository implementation. Return Value TokenRepositoryInterface

PasswordBroker::getUser()

CanResetPassword getUser(array $credentials) Get the user for the given credentials. Parameters array $credentials Return Value CanResetPassword Exceptions UnexpectedValueException

PasswordBroker::getUser()

RemindableInterface getUser(array $credentials) Get the user for the given credentials. Parameters array $credentials Return Value RemindableInterface Exceptions UnexpectedValueException

PasswordBroker::remind()

string remind(array $credentials, Closure $callback = null) Send a password reminder to a user. Parameters array $credentials Closure $callback Return Value string

PasswordBroker::reset()

mixed reset(array $credentials, Closure $callback) Reset the password for the given token. Parameters array $credentials Closure $callback Return Value mixed

PasswordBroker::reset()

mixed reset(array $credentials, Closure $callback) Reset the password for the given token. Parameters array $credentials Closure $callback Return Value mixed