# |
Dec 10th 2019, 11:00 |
gianmarxgagliardi |
@dereuromark how do I find that path ? |
# |
Dec 10th 2019, 10:53 |
challgren |
Xdebug 2.9 fixes the slowness introduced in 2.8 |
# |
Dec 10th 2019, 10:48 |
gianmarxgagliardi |
@steinkel thanks you were very kind. This community is fantastic |
# |
Dec 10th 2019, 10:47 |
dereuromark |
To your App.fullBaseUrl config probably |
# |
Dec 10th 2019, 10:46 |
gianmarxgagliardi |
```[protected] _errors => [ (int) 0 => 'Login URL `http://localhost/users/login` did not match `/users/login`.' ]``` that is a problem related to wamp ? @jotpe |
# |
Dec 10th 2019, 10:44 |
neon1024 |
https://github.com/cakephp/cakephp/blob/master/src/View/Helper/PaginatorHelper.php#L66-L76 |
# |
Dec 10th 2019, 10:43 |
neon1024 |
..and look at the ones you’ve changed |
# |
Dec 10th 2019, 10:43 |
neon1024 |
Just look at all those templates with `<li>` tags in! :O |
# |
Dec 10th 2019, 10:43 |
damiano |
nevermind!! |
# |
Dec 10th 2019, 10:43 |
damiano |
grrrrrr |
# |
Dec 10th 2019, 10:42 |
damiano |
$this->Paginator->setTemplates([ 'active' => '<a href="{{url}}" class="real-btn current">{{text}}</a>', 'number' => '<a href="{{url}}" class="real-btn">{{text}}</a>' ]); |
# |
Dec 10th 2019, 10:42 |
damiano |
@neon1024 i am using: |
# |
Dec 10th 2019, 10:42 |
neon1024 |
I could go and look on Github, but I’m a bit busy right now :slightly_smiling_face: |
# |
Dec 10th 2019, 10:41 |
neon1024 |
You’re probably editing the wrong template, usually there is a wrapper |
# |
Dec 10th 2019, 10:41 |
damiano |
but when i use 'active' => '<a href="{{url}}" class="real-btn current">{{text}}</a>', i still see the <li> why ? |
# |
Dec 10th 2019, 10:41 |
damiano |
'number' works as expected |
# |
Dec 10th 2019, 10:41 |
damiano |
@neon1024 one moment |
# |
Dec 10th 2019, 10:39 |
damiano |
@neon1024 found! pardon....thank you! |
# |
Dec 10th 2019, 10:39 |
steinkel |
@gianmarxgagliardi possibly late, but here's another resource you could use to integrate authentication plugins > https://speakerdeck.com/steinkel/cakefest-2019-basic-workshop and https://github.com/steinkel/cakefest2019 |
# |
Dec 10th 2019, 10:33 |
jotpe |
https://github.com/julianpollmann/cakephp-auth/blob/master/src/Application.php#L140 |
# |
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 |