Have you changed your security salt setting since you first entered in
original password? If so your passwords hash will not match.

Sent from my iPhone

On 2012-05-18, at 8:49 AM, rahajiyev <rahaji...@bankofbaku.com> wrote:

> When user enters his current password for verification it compares
> unequal to his real password.
>
> Here's my custom validation rule function:
>
>
>        public function check_current_password($current_password) {
>                $user = $this->find('first', array('id' => $this-
>> id));
>                debug(AuthComponent::password($current_password));
> debug($user[$this->alias]['password']); exit;
>                return AuthComponent::password($current_password) ==
> $user[$this->alias]['password'];
>        }
>
>
> after I click submit:
> /app/Model/Milli.php (line 40)
>
> '6cff21416995c69a93338d57f969665dc2bb2e00'
>
> /app/Model/Milli.php (line 40)
>
> 'fc33ed920738abf172f2b56f6afbda65e86525de'
>
>
>
> The latter is correct, as stored in the database. What's going on?! I
> stored the password using same AuthComponent::password() call.
>
> --
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to