Esempio n. 1
0
 public function login($username, $password)
 {
     $credential = new Credential(array('username' => $username, 'password' => $password));
     if (!User::login($credential, true)) {
         $this['errors'] = User::getResults();
         return false;
     }
     return true;
 }