sendReset() public method

Send a email to a given user with a link to reset is password
Author: Steve Montambeault
public sendReset ( Cartalyst\Sentry\Users\UserInterface $user ) : void
$user Cartalyst\Sentry\Users\UserInterface
return void
Esempio n. 1
0
 /**
  *
  *
  * @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));
 }