PasswordBroker
class PasswordBroker implements PasswordBroker
Properties
protected TokenRepositoryInterface | $tokens | The password token repository. |
|
protected UserProvider | $users | The user provider implementation. |
|
protected Closure | $passwordValidator | The custom password validator callback. |
Methods
Create a new password broker instance.
Send a password reset link to a user.
Validate a password reset for the given credentials.
Determine if the passwords match for the request.
Determine if the passwords are valid for the request.
Get the user for the given credentials.
Get the password reset token repository implementation.
Details
at line 42
void
__construct(TokenRepositoryInterface $tokens, UserProvider $users)
Create a new password broker instance.
at line 55
string
sendResetLink(array $credentials)
Send a password reset link to a user.
at line 83
mixed
reset(array $credentials, Closure $callback)
Reset the password for the given token.
at line 112
protected CanResetPassword
validateReset(array $credentials)
Validate a password reset for the given credentials.
at line 135
void
validator(Closure $callback)
Set a custom password validator.
at line 146
bool
validateNewPassword(array $credentials)
Determine if the passwords match for the request.
at line 168
protected bool
validatePasswordWithDefaults(array $credentials)
Determine if the passwords are valid for the request.
at line 186
CanResetPassword
getUser(array $credentials)
Get the user for the given credentials.
at line 205
string
createToken(CanResetPassword $user)
Create a new password reset token for the given user.
at line 216
void
deleteToken(CanResetPassword $user)
Delete password reset tokens of the given user.
at line 228
bool
tokenExists(CanResetPassword $user, string $token)
Validate the given password reset token.
at line 238
TokenRepositoryInterface
getRepository()
Get the password reset token repository implementation.