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
コード例 #1
0
ファイル: PasswordForm.php プロジェクト: stevemo/cpanel
 /**
  *
  *
  * @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));
 }