# |
Sep 20th 2019, 06:25 |
admad |
cause probably you messed something up, like setting Paginator->options() |
# |
Sep 20th 2019, 06:24 |
adam282 |
Can anyone explain why my URL’s keep adding the parameters when using pagination? ``` https://domain.com/users?%2Fusers%2Fusers%2Fusers%2Fuserspage=2andpage=2 ``` |
# |
Sep 20th 2019, 04:43 |
javier.villanueva |
morning all |
# |
Sep 20th 2019, 03:00 |
itmpls |
it's a manual one though obviously |
# |
Sep 20th 2019, 02:59 |
itmpls |
is there anyway to control the order of joins? my ->join() which I put at the end of my query appears as the first join in the final SQL |
# |
Sep 19th 2019, 20:37 |
henri.mjr |
Oh sure.. i've copied from a belongsToMany and edited, thanks! |
# |
Sep 19th 2019, 20:33 |
ricksaccous |
that option is for when you have a belongsToMany |
# |
Sep 19th 2019, 20:33 |
ricksaccous |
@henri.mjr joinTable doesn't make sense in a hasMany association |
# |
Sep 19th 2019, 20:32 |
ricksaccous |
is Etnias an alias for the atributos table? |
# |
Sep 19th 2019, 20:32 |
ricksaccous |
i don't really understand what you're trying to do though to be honest |
# |
Sep 19th 2019, 20:31 |
henri.mjr |
oh |
# |
Sep 19th 2019, 20:29 |
ricksaccous |
you should specify the className |
# |
Sep 19th 2019, 20:28 |
henri.mjr |
I'm trying to make a generic "attributes", why cake is asking for a Table called "Etnias"? `$this->hasMany('Etnias', [ 'foreignKey' => 'acompanhante_id', 'joinTable' => 'atributos', 'conditions' => [ 'atributos.categoria' => 'Etnias' ]]);´ |
# |
Sep 19th 2019, 20:28 |
slackebot |
<challgren> |
# |
Sep 19th 2019, 20:28 |
daniel.upshaw |
Good call |
# |
Sep 19th 2019, 20:28 |
daniel.upshaw |
Strange that CakeDC would not unlock by default! |
# |
Sep 19th 2019, 20:28 |
challgren |
Maybe open an issue in the repo |
# |
Sep 19th 2019, 20:28 |
daniel.upshaw |
Thanks a bunch for the input |
# |
Sep 19th 2019, 20:28 |
daniel.upshaw |
Well that works to disable it, but still going to try to get it working enabled |
# |
Sep 19th 2019, 20:27 |
challgren |
Normally after like midnight our times |
# |
Sep 19th 2019, 20:27 |
daniel.upshaw |
Ah thanks for the tip :slightly_smiling_face: |
# |
Sep 19th 2019, 20:27 |
challgren |
Most of the cakeDC experts with the auth/users plugin are on much later |
# |
Sep 19th 2019, 20:26 |
daniel.upshaw |
I'll try that |
# |
Sep 19th 2019, 20:26 |
challgren |
Damm I cannot type today |
# |
Sep 19th 2019, 20:26 |
challgren |
Have you tried disable it |
# |
Sep 19th 2019, 20:25 |
daniel.upshaw |
Lol |
# |
Sep 19th 2019, 20:25 |
daniel.upshaw |
Fair, fair |
# |
Sep 19th 2019, 20:25 |
challgren |
Personally I avoid the security component, too much grief in my life for it |
# |
Sep 19th 2019, 20:24 |
daniel.upshaw |
Would have thought that would be handled |
# |
Sep 19th 2019, 20:24 |
daniel.upshaw |
Looks like nothing is unlocked |
# |
Sep 19th 2019, 20:23 |
daniel.upshaw |
There's a dump of ``` protected function _validToken(Controller $controller) { $check = $controller->getRequest()->getData(); dd($check);``` |
# |
Sep 19th 2019, 20:23 |
slackebot |
"%5B%22%5C%2Flogin%3Fredirect%3Dhttp%253A%252F%252Flocalhost%253A8765%252F%22%2C%5B%22username%22%2C%22password%22%5D%2C%5B%5D%5D" ] ]``` |
# |
Sep 19th 2019, 20:23 |
daniel.upshaw |
```array:4 [▼ "_csrfToken" => "7ab19826360385ee559f3b65c6386499fa547e5bea2cdadbb0c88c332afc638f692c36f2326a91c39edda711a37207dea41eeec29a7c83781ef69b5fb73d0b39" "username" => "testing" "password" => "testing" "_Token" => array:3 [▼ "fields" => "1c5dedeb5f156fc4cc4ea1ec764018a91f12f4af%3A" "unlocked" => "" "debug" => |
# |
Sep 19th 2019, 20:23 |
challgren |
Wonder if the template is getting the security hash in it |
# |
Sep 19th 2019, 20:21 |
daniel.upshaw |
Lol |
# |
Sep 19th 2019, 20:21 |
daniel.upshaw |
Frustrating |
# |
Sep 19th 2019, 20:21 |
challgren |
Ahh yeah that will do it 99% of the time |
# |
Sep 19th 2019, 20:21 |
daniel.upshaw |
`hash_equals` is supposed to return `true`, but never does |
# |
Sep 19th 2019, 20:20 |
slackebot |
= $this->_debugPostTokenNotMatching($controller, $hashParts); } throw new AuthSecurityException($msg); }``` |
# |
Sep 19th 2019, 20:20 |
daniel.upshaw |
``` protected function _validatePost(Controller $controller) { $token = $this->_validToken($controller); $hashParts = $this->_hashParts($controller); $check = hash_hmac('sha1', implode('', $hashParts), Security::getSalt()); if (hash_equals($check, $token)) { return true; } $msg = self::DEFAULT_EXCEPTION_MESSAGE; if (Configure::read('debug')) { $msg |
# |
Sep 19th 2019, 20:20 |
daniel.upshaw |
It happens in `SecurityComponent.php` |