Skip to content

AppController AuthComponent #5

@hassanfaizm

Description

@hassanfaizm

In AppController
when i replace

$this->loadComponent('Auth', [
            'authorize' => 'Controller',
            'storage' => 'Session',
        ]);

to

$this->loadComponent('Auth', [
        'authenticate' => [
            'RememberMe.Cookie' => [
                'userModel' => 'Users',
                'fields' => ['username' => 'email'],
                'inputKey' => 'remember_me',
            ],
            // ... other authenticater config
        ],
        // ... other auth component config
    ]);

it fails to identify the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions