findByLogin() public method

Find a given user by the login attribute
Author: Steve Montambeault
public findByLogin ( $login ) : Cartalyst\Sentry\Users\UserInterface
$login
return Cartalyst\Sentry\Users\UserInterface
示例#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));
 }