Skip to content

warning: Error saving user id {id} password after rehashing: identifier Password not found. Check your Auth.PasswordRehash.identifiers configuration. #1170

@Murl080

Description

@Murl080

After upgrading to CakePHP 5.x and CakeDC users plugin 16.0.0, we get the following warning:

2026-01-28 14:00:15 warning: Error saving user id 1 password after rehashing: identifier Password not found. Check your Auth.PasswordRehash.identifiers configuration.

The line triggering this warning is:
https://github.com/CakeDC/users/blob/16.0.0/src/Controller/Component/LoginComponent.php#L196

The reason for this warning is that the CakeDC users plugin default configuration contains deprecated configuration:
https://github.com/CakeDC/users/blob/16.0.0/config/users.php#L287

According to the code https://github.com/CakeDC/users/blob/16.0.0/src/Controller/Component/LoginComponent.php#L206-L207
the new way should have configuration set under Auth.PasswordRehash.authenticators

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions