Find a given user by the login attribute
public findByLogin ( $login ) : Cartalyst\Sentry\Users\UserInterface | ||
$login | ||
return | Cartalyst\Sentry\Users\UserInterface |
/** * * * @author Steve Montambeault * @link http://stevemo.ca * * @param $email * * @return void */ public function forgot($email) { $user = $this->users->findByLogin($email); $this->mailer->sendReset($user); Event::fire('users.password.forgot', array($user)); }