Never mind. This was all my fault.
beforeSave in the User model naturally needs to check for empty aswell
as isset. I tend to do this alot since blank = false but is still set.
/Martin
function beforeSave()
{
if ( isset($this->data['User']['new_pass']) && !empty($this-
>data['User']['new_pass']) )
{
$this->data['User']['password'] =
Security::hash(Configure::read('Security.salt') . $this->data['User']
['new_pass']);
}
return true;
}
On Feb 6, 8:06 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> This is a bit wierd.
> I have just a basic Auth setup (no ACL, just logins). At least three
> times in the past two days the hashed password has magically changed
> on te user I usually login with. Or more to the point... all users
> have the same password-hash. I am pretty sure I am not saving users
> fro any other controller I am working on.
>
> I disable auth and edit the user-accounts, resetting the passwords to
> "1234" and similar test-passwords. I can now login again. Later,
> without warning, I can't login again and the password-hashes are back
> to the same they were before.
>
> Is this a known general problem or do I need to start logging a lot of
> mysql stuff? (I have no idea exactly when the change happens at this
> point)
>
> chreers
> Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---