# |
Dec 10th 2019, 10:33 |
jotpe |
@gianmarxgagliardi I guess your login path is different from the one I used. You can set it with: $service->setConfig |
# |
Dec 10th 2019, 10:33 |
neon1024 |
@damiano Yes, you can change the template used by the helper, just check the helpers config |
# |
Dec 10th 2019, 10:27 |
damiano |
(i am using cakephp 3.8) |
# |
Dec 10th 2019, 10:27 |
damiano |
is that possible somehow? |
# |
Dec 10th 2019, 10:27 |
damiano |
helklo, how can i change the html of the paginator? i need <a> instead of <li> |
# |
Dec 10th 2019, 10:26 |
gianmarxgagliardi |
there is also a path problem. very often it takes testlogin and gives me not found |
# |
Dec 10th 2019, 10:26 |
slackebot2 |
<gianmarxgagliardi> |
# |
Dec 10th 2019, 10:23 |
gianmarxgagliardi |
```src\Controller\UsersController.php (line 135)object(Authentication\Authenticator\Result) { [protected] _status => 'FAILURE_OTHER' [protected] _data => null [protected] _errors => [ (int) 0 => 'Login URL `http://localhost/users/login` did not match `/users/login`.' ] }``` |
# |
Dec 10th 2019, 10:23 |
jotpe |
Ah I guess you didn't changed the User Entity. Your password is stored in plaintext in your db. You need to hash it: https://github.com/julianpollmann/cakephp-auth/blob/master/src/Model/Entity/User.php |
# |
Dec 10th 2019, 10:21 |
jotpe |
You can try to debug the AuthenticationResult: `$result = $this->Authentication->getResult(); debug($result);` |
# |
Dec 10th 2019, 10:18 |
gianmarxgagliardi |
@jotpe Is there any problem. when I register I log in, then when I log out I try to log in but not log in |
# |
Dec 10th 2019, 10:01 |
challgren |
Np but it was mainly @jotpe |
# |
Dec 10th 2019, 10:00 |
jotpe |
You're welcome :slightly_smiling_face: |
# |
Dec 10th 2019, 09:53 |
gianmarxgagliardi |
@jotpe and @challgren thanks ... wrooooooooooooooooo |
# |
Dec 10th 2019, 09:51 |
challgren |
Yay! |
# |
Dec 10th 2019, 09:48 |
slackebot2 |
<gianmarxgagliardi> |
# |
Dec 10th 2019, 09:47 |
gianmarxgagliardi |
ok i have copy and paste of your app controller and now it is no more error |
# |
Dec 10th 2019, 09:45 |
jotpe |
See https://github.com/julianpollmann/cakephp-auth/blob/master/src/Controller/AppController.php as example |
# |
Dec 10th 2019, 09:45 |
jotpe |
Does your AppController.php load the AuthenticationComponent? |
# |
Dec 10th 2019, 09:43 |
slackebot2 |
<gianmarxgagliardi> |
# |
Dec 10th 2019, 09:42 |
gianmarxgagliardi |
OK took the lead, but the error changed |
# |
Dec 10th 2019, 09:40 |
challgren |
Jinx! |
# |
Dec 10th 2019, 09:40 |
challgren |
`composer require cakephp/authentication` |
# |
Dec 10th 2019, 09:40 |
slackebot2 |
<jotpe> |
# |
Dec 10th 2019, 09:39 |
gianmarxgagliardi |
how to install a plug-in with the composer? I never did it. |
# |
Dec 10th 2019, 09:38 |
jotpe |
and you installed the plugin with composer? |
# |
Dec 10th 2019, 09:38 |
gianmarxgagliardi |
made copy and paste usually error:*`Fatal error: Interface 'Authentication\AuthenticationServiceProviderInterface' not found in C:\wamp64\www\testlogin\src\Application.php on line _36_`* |
# |
Dec 10th 2019, 09:37 |
jotpe |
so then it's `composer require cakephp/authentication` |
# |
Dec 10th 2019, 09:36 |
gianmarxgagliardi |
to install cake I go to the www of wamp launch the command `composer self-update andand composer create-project --prefer-dist cakephp / app cms` and do it all |
# |
Dec 10th 2019, 09:35 |
challgren |
so bootstrap and middleware arent being called |
# |
Dec 10th 2019, 09:35 |
jotpe |
So @gianmarxgagliardi copy this to your Application.php if you want to do copy/paste: https://raw.githubusercontent.com/julianpollmann/cakephp-auth/master/src/Application.php |
# |
Dec 10th 2019, 09:35 |
challgren |
Inside the docblock too |
# |
Dec 10th 2019, 09:35 |
jotpe |
Ah, yeah. |
# |
Dec 10th 2019, 09:35 |
challgren |
`@@ -96,4 +106,39 @@ protected function bootstrapCli()` |
# |
Dec 10th 2019, 09:34 |
challgren |
`@@ -76,7 +83,10 @@ public function middleware($middlewareQueue)` |
# |
Dec 10th 2019, 09:34 |
challgren |
`@@ -36,6 +42,7 @@ public function bootstrap()` |
# |
Dec 10th 2019, 09:34 |
challgren |
@jotpe what about the diffs in his pastbin? |
# |
Dec 10th 2019, 09:34 |
jotpe |
Basically it's the same way how to install cakephp: https://book.cakephp.org/3/en/quickstart.html#getting-cakephp |
# |
Dec 10th 2019, 09:34 |
gianmarxgagliardi |
win 7 |
# |
Dec 10th 2019, 09:34 |
gianmarxgagliardi |
sorry |
# |
Dec 10th 2019, 09:34 |
gianmarxgagliardi |
win 10 |