Log message #4203510

# At Username Text
# Sep 17th 2019, 11:08 conehead If you are not saving it at all or it is not related to any Entity
# Sep 17th 2019, 11:08 conehead For me it sounds more like you should validate it in your controller
# Sep 17th 2019, 11:06 jotpe It's just in the request data
# Sep 17th 2019, 11:06 jotpe Even if my Entity doesn't have the field set?
# Sep 17th 2019, 11:06 alexdd55976 i think, you can validate at any point
# Sep 17th 2019, 11:04 jotpe How can I validate a field, which is only present in the Form, but not in my Entity (e.g. comparing a `password` and a `password_repeat`? Or should I do this in beforeMarshal?
# Sep 17th 2019, 10:49 challgren Ah ha it is `Cake\TestSuite\TestEmailTransport` wonder why this transport would be default when running in Integration Test mode
# Sep 17th 2019, 10:47 jotpe ;9
# Sep 17th 2019, 10:47 jotpe Got it `$this->Authentication->setIdentity($user);`
# Sep 17th 2019, 10:44 jotpe Is there a way to set the Identity in the new Authentication plugin (e.g. After User Registration -> Log a user automatically in)?
# Sep 17th 2019, 10:27 challgren Ok weird for some reason when running integration tests it seems like debug transport is loaded instead of the real transport
# Sep 17th 2019, 10:25 challgren I think thats why]\
# Sep 17th 2019, 10:25 challgren https://github.com/cakephp/cakephp/compare/3.8.2...3.8.4#diff-bf0a8fe5a8b62d4ca6be6deb2d9a4b35R42
# Sep 17th 2019, 10:24 challgren Weird my tests are failing on 3.8.4 but work on 3.8.2
# Sep 17th 2019, 10:24 jotpe thy
# Sep 17th 2019, 10:24 jotpe @neon1024 yeah right, was a bit confused because I have that combined validation
# Sep 17th 2019, 10:23 neon1024 https://github.com/cakephp/cakephp/blame/c50454fef169771cb28cb7589c9ead026f0c77f3/src/Mailer/Mailer.php#L312
# Sep 17th 2019, 10:23 neon1024 @jadb Did 5 years ago
# Sep 17th 2019, 10:22 challgren Grrr who changed the Mailer->send() return value!
# Sep 17th 2019, 10:21 neon1024 @jotpe They should show up in the FormHelper output if the fields match up
# Sep 17th 2019, 10:17 jotpe Is there some Helper or something to show Validation Errors?
# Sep 17th 2019, 10:07 jotpe Thanks @javier.villanueva it worked :slightly_smiling_face:
# Sep 17th 2019, 09:55 steinkel @neon1024 SecurityComponent
# Sep 17th 2019, 09:48 jotpe I'll try
# Sep 17th 2019, 09:48 jotpe ah okay
# Sep 17th 2019, 09:48 jotpe yeah i thought it's the right place
# Sep 17th 2019, 09:48 javier.villanueva $rules->add($rules->isUnique(['first_name', 'last_name']));
# Sep 17th 2019, 09:48 javier.villanueva in buildRules you can try
# Sep 17th 2019, 09:48 javier.villanueva ahm
# Sep 17th 2019, 09:47 neon1024 `_Token was not found in request data` is this the CsrfMiddleware, CsrfComponent or SecurityComponent?
# Sep 17th 2019, 09:47 jotpe I have a method to o this, but I want to validate when creating. So it shouldn't be possible to create a entity with this combination again
# Sep 17th 2019, 09:46 javier.villanueva in entity
# Sep 17th 2019, 09:46 javier.villanueva protected function _getNameDesc() { return $this->_properties['first_name'] . ' - ' . $this->_properties['last_name']; }
# Sep 17th 2019, 09:45 javier.villanueva and.....
# Sep 17th 2019, 09:45 javier.villanueva use in table $this->setDisplayField('name_desc');
# Sep 17th 2019, 09:44 jotpe How can i validate a combination of fields (e.g. I don't want to have a combination of `first_name` and `last_name` in my Users Table.
# Sep 17th 2019, 09:27 jotpe Hello folks
# Sep 17th 2019, 09:10 challgren Hmm not sure
# Sep 17th 2019, 09:01 johnwayne I am using Heroku (code is on Git) and its pretty small app with baisc out of box config (CakePhp Documentation)
# Sep 17th 2019, 09:00 challgren You running anything like cloudflare or ngrok?
# Sep 17th 2019, 08:59 johnwayne Morning to all, I have weird problem with Session timeout. Only one customer getting Error message from Auth `You are not authorized to access that location.` and I have increase Session timeout to 43200 and session.cookie_lifetime is to 86400. What can be the problem or how can I prevent this?