Log message #3943826

# At Username Text
# Oct 7th 2016, 11:39 ypnos jameg83: did you try 'default' => false?
# Oct 7th 2016, 11:32 jameg83 Hi everyone. Could any one please explain why the following:- $this->Form->input('shear', ['type' => 'checkbox', 'label' => 'Double Shear?']) returns a hidden field and a checkbox field with the value set to 1? The problem is when adding an entity this is set to true even if it's not checked..
# Oct 7th 2016, 11:30 ndm populating session data works just fine, given that the auth component is configured to use sessions of course
# Oct 7th 2016, 11:28 doonot Hi all. Does anyone know how I can mock $this->Auth in a unit test in CakePHP 3? Putting Auth data into the session does not work as I use $this->Auth->user("id") in my code.
# Oct 7th 2016, 11:26 tokam slackebot: thanks. it works with that
# Oct 7th 2016, 11:24 pat Hi all. Does anyone know how I can mock $this->Auth in a unit test? Putting Auth data into the session does not work as I use $this->Auth->user("id") in my code.
# Oct 7th 2016, 11:16 tokam ok thanks I will try to copy the user agen too
# Oct 7th 2016, 11:12 ndm If a different IP causes the session to be invalidated, then this is likely either something implemented in the application, or you're doing more than just changing the IP.
# Oct 7th 2016, 11:12 ndm @tokam Cakes session handler doesn't check the IP. In 2.x it may check the user agent string in case the `Session.checkAgent` option is enabled, in 3.x there aren't any such tests, only the regular timeout check.
# Oct 7th 2016, 11:02 tokam ok as of I do sent it from an other ip I get logged out :( :D
# Oct 7th 2016, 11:00 tokam string(80) "CAKE=616cesdsdsdsdsddsssssss3;PHPSESSID=bdsdssddsdsssssss"
# Oct 7th 2016, 11:00 tokam the cookies look like this
# Oct 7th 2016, 10:57 tokam *equal
# Oct 7th 2016, 10:57 tokam the request will come from a different ip, but the cookies should be equals
# Oct 7th 2016, 10:57 tokam do I send the cookies right?
# Oct 7th 2016, 10:57 tokam what I ask myself now: Is it enough to send the cookies, to capture the session?
# Oct 7th 2016, 10:57 tokam My intention of sending the cookies with curl (when receiving the boilerplate) is to 1.) also receive flash messages 2.) also receive the authentication state dependant html
# Oct 7th 2016, 10:56 tokam all other pages are generated with cake php
# Oct 7th 2016, 10:56 tokam but it does a curl query to a cake php application with the cookies set of the user
# Oct 7th 2016, 10:56 tokam https://www.aescuvest.de/fuer-ideengeber/ideeeinreichen
# Oct 7th 2016, 10:56 tokam This page is generated with symfony
# Oct 7th 2016, 10:54 dakota I believe it uses an encrypted cookie with the session id stored in it
# Oct 7th 2016, 10:37 tokam Can I if I reproduce the cookies 1:1 highjack the session? (because this is what I want)
# Oct 7th 2016, 10:36 tokam How does cake handle sessions?
# Oct 7th 2016, 10:18 bernat1 PR up
# Oct 7th 2016, 10:18 bernat1 there was a typo in the book, me following the book too closely.
# Oct 7th 2016, 10:05 bernat1 I've written a Type::marshall() method but it isn't getting called when patching the entity with form data. Shouldn't it be called there?
# Oct 7th 2016, 09:50 cjquinn Ta!
# Oct 7th 2016, 09:49 dereuromark PR directly is fine
# Oct 7th 2016, 09:46 cjquinn @dereuromark I've written a test and a fix regarding `_method` and RoutingMiddleware, should I do a pull request or open an issue first?
# Oct 7th 2016, 09:43 bernat1 morning
# Oct 7th 2016, 09:38 birdy247 (late) morning
# Oct 7th 2016, 09:38 bernat1 would it be*
# Oct 7th 2016, 09:37 bernat1 Neon1024: it would be the Type::marshal() method?
# Oct 7th 2016, 09:35 Neon1024 A custom data type class can do both into and out of the db
# Oct 7th 2016, 09:30 bernat1 I'm asking for the user form handling since the database conversion handling is working
# Oct 7th 2016, 09:30 bernat1 I want to handle it internally as an array, then as a string in the user forms and the database, but with different formats
# Oct 7th 2016, 09:29 bernat1 my custom data type takes an array and converts it to be stored as a string in the database
# Oct 7th 2016, 09:29 Neon1024 As youâ??d deal with that in your custom data type class
# Oct 7th 2016, 09:29 Neon1024 If itâ??s a custom data type, it should be done automatically
# Oct 7th 2016, 09:29 bernat1 I see most beforeMarshall examples take an string as input and output a string, that's why I'm asking.