New to cakePHP 5 - Auth problem

I’m trying to get a login page working on my newly-created site, but I’m having problems.

I keep getting this error:

object(Authentication\Authenticator\Result)#142 (3) { [“_status”:protected]=> string(26) “FAILURE_IDENTITY_NOT_FOUND” [“_data”:protected]=> NULL [“_errors”:protected]=> array(1) { [“Password”]=> array(0) { } } }

I’ve created a table called tUsers (which I noted in the Model).

I think the problem is with the authentication service, but I’m not sure. When I print out $authenticationServer, it’s blank:

    $authenticationService->loadIdentifier('Authentication.Password', [
        'fields' => [
            'username' => 'username',
            'password' => 'password',

Can anyone help?



        $fields = [
            AbstractIdentifier::CREDENTIAL_USERNAME => 'username',
            AbstractIdentifier::CREDENTIAL_PASSWORD => 'password',

        $service->loadIdentifier('Authentication.Password', [
            'fields' => $fields,

Table name tUsers or Users? I have table Users