Beispiel #1
0
 public function run()
 {
     $credentials = ['username' => $this->get('username'), 'password' => $this->get('password')];
     $remember = $this->get('remember');
     if (!$this->auth->login($credentials, $remember)) {
         throw new Exception('Login failure.');
     }
 }