PasswordBroker
class PasswordBroker implements PasswordBroker (View source)
Methods
void
__construct(
TokenRepositoryInterface $tokens,
UserProvider $users,
Mailer $mailer,
string $emailView)
Create a new password broker instance.
string
int
emailResetLink(
CanResetPassword $user,
string $token,
Closure $callback = null)
Send the password reset link via e-mail.
bool
validateNewPassword(
array $credentials)
Determine if the passwords match for the request.
getUser(
array $credentials)
Get the user for the given credentials.
string
void
deleteToken(
string $token)
Delete the given password reset token.
bool
getRepository()
Get the password reset token repository implementation.
Details
at line line 59
void
__construct(
TokenRepositoryInterface $tokens,
UserProvider $users,
Mailer $mailer,
string $emailView)
Create a new password broker instance.
at line line 77
string
sendResetLink(
array $credentials,
Closure $callback = null)
Send a password reset link to a user.
at line line 106
int
emailResetLink(
CanResetPassword $user,
string $token,
Closure $callback = null)
Send the password reset link via e-mail.
at line line 129
mixed
reset(
array $credentials,
Closure $callback)
Reset the password for the given token.
at line line 192
bool
validateNewPassword(
array $credentials)
Determine if the passwords match for the request.
at line line 231
CanResetPassword
getUser(
array $credentials)
Get the user for the given credentials.
at line line 250
string
createToken(
CanResetPassword $user)
Create a new password reset token for the given user.
at line line 273
bool
tokenExists(
CanResetPassword $user,
string $token)
Validate the given password reset token.
at line line 283
TokenRepositoryInterface
getRepository()
Get the password reset token repository implementation.