title: CakePHP not hashing password before adding to MySQL
body: <p>add in UsersController.php</p>
  
  <pre><code>public function add() {
      if ($this-&gt;request-&gt;is('POST')) {
          if ($this-&gt;confirmPass()) {
              //Want false
              if (!$this-&gt;validateSQL('username', 'add')) {
                  $this-&gt;Session-&gt;write('User.username', strtolower('User.username'));
                  //Want false
                  if (!$this-&gt;validateSQL('email', 'add')) {
                      $this-&gt;Session-&gt;write('User.email', strtolower('User.email'));
                      $this-&gt;User-&gt;create();
                      if ($this-&gt;User-&gt;save($this-&gt;request-&gt;data)) {
                          $this-&gt;Session-&gt;setFlash(__('Your account has been created'), 'flash_success', array('class' =&gt; 'success'), 'success');
                          $this-&gt;redirect(ACCOUNT_LOG);
                      } else {
                          $this-&gt;Session-&gt;setFlash(__('Your account could not be created'), 'flash_failure', array('class' =&gt; 'failure'), 'failure');
                      }
                  } else {
                      $this-&gt;Session-&gt;setFlash(__('E-mail already in use'), 'flash_failure', array('class' =&gt; 'failure'), 'failure');
                  }
              } else {
                  $this-&gt;Session-&gt;setFlash(__('Username already in use'), 'flash_failure', array('class' =&gt; 'failure'), 'failure');
              }
          }
      }
  }
  </code></pre>
  
  <p>validateSQL only makes call to check the username and/or email fields to see if they exist or not (I've left them in the controller because I'd like to fix this first, I know I need to move them to the model).</p>
  
  <p>confirmPass only compares the fields password and confirmPassword from the view, returning true or false.</p>
  
  <p>beforeSave in User.php</p>
  
  <pre><code>public function beforeSave($options = array()) {
          if (isset($this-&gt;request-&gt;controller-&gt;data[$this-&gt;alias]['password'])) {
              $this-&gt;request-&gt;controller-&gt;data[$this-&gt;alias]['password'] = AuthComponent::password($this-&gt;request-&gt;controller-&gt;data[$this-&gt;alias]['password']);
          }
          return true;
  }
  </code></pre>
  
  <p>Yesterday everything was working perfectly. All the values are still being saved to the correct tables, just no hashing on the password is being done (md5+salt). Does anyone have any ideas if this is a known or common problem with AuthComponent?</p>
  
  <p>If I remove the isset I get from my model: </p>
  
  <p>Notice (8): Trying to get property of non-object [APP/Plugin/Account/Model/User.php, line 65]</p>
  
  <p>Notice (8): Trying to get property of non-object [APP/Plugin/Account/Model/User.php, line 65]</p>
  
  <p>Notice (8): Indirect modification of overloaded property User::$request has no effect [APP/Plugin/Account/Model/User.php, line 65]</p>