title: Kohana 3: Auth module
body: <p>i'm trying to learn the Kohana's Auth module but login method always return false.</p>
  
  <p>Controller:</p>
  
  <pre><code>&lt;?php defined('SYSPATH') OR die('No Direct Script Access');
  class Controller_Auth extends Controller {
      public function action_index() {
          if($_POST) {
              $this-&gt;login();
          }
  
          $this-&gt;template = View::factory('login');
          echo $this-&gt;template;
      }
  
      private function login() {
      $user = ORM::factory('user');
  
          $data = array('username' =&gt; 'wilson', 'password' =&gt; '123');
          if(!$user-&gt;login($data)) {
              echo 'FAILED!';
          }
      }
  
      private function logout() {
  
      }
  }    
  ?&gt;
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>&lt;?php defined('SYSPATH')  or die('No direct script access.');
  class Model_User extends Model_Auth_User {
  }
  ?&gt;
  </code></pre>