title: Cakephp & user email confirmation
body: <p>i'm new to php and cakephp, i was following the Simple Authentication and Authorization Application tutorial from cakephp (<a href="http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html" rel="nofollow">http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html</a>). All seem to working good.</p>
  
  <p>I'm add a email confirmation to activate the account when a user subscribe. In the tutorial the password is using the blowfishpassword hasher. And i'm using it as a token in the link for the confirmation.</p>
  
  <p>but i can't seem to be able to compare the link token with the password in the database...</p>
  
  <pre><code>$passwordHasher = new BlowfishPasswordHasher();
              $motdepasse = $this-&gt;data['Utilisateur']['mot_passe'] = $passwordHasher-&gt;hash(
                  $this-&gt;data['Utilisateur']['mot_passe']
              );
              $link = array('controller'=&gt;'utilisateurs','action'=&gt;'activate',$this-&gt;Utilisateur-&gt;id
                    .'-'. $motdepasse);
  
  
  public function activate($token) {
    $token = explode('-',$token);
    $user = $this-&gt;Utilisateur-&gt;find('first',array(
      'conditions' =&gt; array('id' =&gt; $token[0],'Utilisateur.mot_passe' =&gt; Security::hash($token[1], 'blowfish', 'Utilisateur.mot_passe'))
    ));
    debug($user);
    debug($token[1]);
    die();
  
  }
  </code></pre>
  
  <p>Can you help me? thanks guys!</p>