Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class YourClass extends PasswordBroker
- {
- public function sendResetLink(array $credentials, Closure $callback = null)
- {
- $user = $this->getUser($credentials);
- if (is_null($user) || $user->active != 1) { //add your condition here
- return PasswordBrokerContract::INVALID_USER;
- }
- $token = $this->tokens->create($user);
- $this->emailResetLink($user, $token, $callback);
- return PasswordBrokerContract::RESET_LINK_SENT;
- }
- }
Add Comment
Please, Sign In to add comment