Hello,
Please help with this!
I divide accounts on Admin and User by prefix
$this->loadComponent(‘Auth’, [
‘authenticate’ => [
‘Form’ => [
‘finder’ => ‘auth’,
‘userModel’ => ‘User/Users’,
…
]
But when I set userModel = > User/Users then shows me error SQL Query:
SELECT User/Users.id AS User/Users__id
,
User/Users.username AS User/Users__username
,
User/Users.password AS User/Users__password
,
User/Users.email AS User/Users__email
,
User/Users.phone AS User/Users__phone
,
…
…
FROM Users User/Users WHERE (User/Users.email = user@site.com) LIMIT 1
It load model Users, but add prefix to name of all columns!
Why it does this
And how fix it?
Thanks all!