No, of course I didn't. Only one thing changed, don't know if it's
related: I entered the users and their hashed passwords in one
controller, then logged in as them and attempted hashing their own
password in the other. This shouldn't matter, unless Cake further
salts the hash using controller's name or something.


On May 18, 6:32 pm, Michael Gaiser <[email protected]> wrote:
> 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 <[email protected]> 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 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group 
> > athttp://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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to