title: Kohana Auth Module not hashing the password
body: <p>I'm using Kohana 2.3.4 and can't get the auth module to work.</p>
  
  <p>I'm just adding a user like this:</p>
  
  <pre><code>$user = ORM::factory('user');
  $user-&gt;username = 'admin';
  $this-&gt;auth = Auth::instance();   
  $user-&gt;email    = 'admin@example.com';
  $user-&gt;password = 'secret';
  
  $user-&gt;add(ORM::factory('role', 'login'));
  $user-&gt;save();
  </code></pre>
  
  <p>The problem is that when I look into the users table, the password is in the clear.
  It seems like the auth_user_model is not being called.</p>
  
  <p>My user model is from the documentation. i.e.</p>
  
  <pre><code>// and, in models/user.php
  class User_Model extends ORM {
      protected $has_and_belongs_to_many = array('roles');
  
      public function unique_key($id = NULL)
      {
          if ( ! empty($id) AND is_string($id) AND ! ctype_digit($id) )
          {
              return 'username';
          }
  
          return parent::unique_key($id);
      }
  
  }
  </code></pre>
  
  <p>On closer inspection the file Auth_User_Model isn't being called.  I corrupted it and got no complaints.</p>
  
  <p>So I changed </p>
  
  <pre><code>class User_Model extends Auth_User_Model {
  </code></pre>
  
  <p>And now it's hashing the passwords.  Is this the correct way to use it?  I'm surprised I'm not seeing more comments about this?
  To</p>
  
  <pre><code>class User_Model extends ORM {
  </code></pre>