I am using CakePHP for a school project where a filled in database is given to you.
Users are required to login by a username / password which I already made. The problem however, users in the database have an unencrypted password which I want to authenticate them with.
I can't find any way to disable the password hash check. I tried specifying a fallback password hasher like this.
$authenticationService->loadIdentifier('Authentication.Password', [
'fields' => [
'username' => 'username',
'password' => 'password',
],
'passwordHasher' => [
'className' => 'Authentication.Fallback',
'hashers' => [
'Authentication.Default',
[
'className' => 'Authentication.Legacy',
'hashType' => 'md5',
'salt' => false
],
]
]
]);
But I can't find any way to disable the 'hashType'.