Log message #3881297

# At Username Text
# May 27th 2016, 08:07 birdy247 most importantly, have you consumed any beers yet
# May 27th 2016, 08:07 spriz okay :slightly_smiling_face: Damn.. thatâ??s also how Iâ??ve done it before :S
# May 27th 2016, 08:07 neon1024 Morning birdy247
# May 27th 2016, 08:07 birdy247 caked fested up
# May 27th 2016, 08:07 neon1024 Yeps
# May 27th 2016, 08:07 spriz eg load it in the AppController and use those settings across user/admin controllers
# May 27th 2016, 08:07 birdy247 @neon1024: morning
# May 27th 2016, 08:07 neon1024 I have a different auth adapter for my api
# May 27th 2016, 08:07 spriz Yeah, that was what I meant with â??same settings"
# May 27th 2016, 08:07 neon1024 No, just use the 1 AuthComponent implementation
# May 27th 2016, 08:06 spriz okay, so you load the samme settings in terms of the Auth component and use them across both user/admin controllers?
# May 27th 2016, 08:06 spriz In my case, the â??userâ? facing part is only registering/managing your user, and then what is â??usableâ? is a REST api
# May 27th 2016, 08:06 neon1024 Just have Auth as normal in AppController
# May 27th 2016, 08:05 spriz damn, didnâ??t see your message neon1024 :P But! When youâ??re doing your admin controllers and using prefix, how are you handling authorisation?
# May 27th 2016, 08:00 unholyknight any ideas?
# May 27th 2016, 08:00 unholyknight i have a behavior running on beforeRules which are operations needed before validation rules are digested, but it either doesnâ??t get called or is failing validation before reaching the behavior.
# May 27th 2016, 07:56 bravo-kernel aha, let me try that, makes sense
# May 27th 2016, 07:55 fquffio bravo-kernel: i think that you still need to run `$this->response->etag()`, but if you load `RequestHandlerComponent` you'll be able to skip the `$this->response->checkNotModified()` part.
# May 27th 2016, 07:53 bravo-kernel I have a feeling I must do more than just add RequestHandler to respond with an Etag
# May 27th 2016, 07:52 bravo-kernel \o
# May 27th 2016, 07:52 k4t o/
# May 27th 2016, 07:52 bravo-kernel Am I misreading this or are Etags handled autmatically when RequestHandler is used in my app?
# May 27th 2016, 07:51 bravo-kernel To take advantage of this header, you must either call the Cake\Network\Response::checkNotModified() method manually **or** include the RequestHandlerComponent in your controller
# May 27th 2016, 07:51 fquffio ok, that plugin simply does a `str_replace` to escape `%`s and `_`s
# May 27th 2016, 07:51 bravo-kernel The books mentions this about [Etag headers](http://book.cakephp.org/3.0/en/controllers/request-response.html#the-etag-header):
# May 27th 2016, 07:48 fquffio neon1024: thanks, I will
# May 27th 2016, 07:46 neon1024 I'd recommend checking out the friendsofcake/search plugin
# May 27th 2016, 07:44 fquffio dakota: apologies, I misused the term "sanitized". i mean that I want to have control over "%" operators and suchâ?¦
# May 27th 2016, 07:42 dakota fquffio: `â??field LIKEâ?? => $userData` will sanitize it for you
# May 27th 2016, 07:38 fquffio Hello, everybody. What is the most "Cake-ish" way to sanitize user input when issuing a `LIKE` condition?
# May 27th 2016, 07:37 alanderouen morning all :)
# May 27th 2016, 07:35 hmic http://book.cakephp.org/3.0/en/core-libraries/events.html#establishing-priorities
# May 27th 2016, 07:33 hmic unholyknight: you need to setup events and use priorities on them i guess
# May 27th 2016, 07:21 neon1024 spriz: Morning!
# May 27th 2016, 07:14 unholyknight two behaviors that is, not two events
# May 27th 2016, 07:14 unholyknight In what order are behaviors run? Are they run in the order that they are assigned to a table? I have two events that need to run on beforeRules but they need to run in a specific order
# May 27th 2016, 07:14 spriz neon1024: are you around? :)
# May 27th 2016, 07:12 voycey 5pm now
# May 27th 2016, 07:10 okatsuralau In my tests, only the $this->Controller->request->session()->write() actually persist to database, but I need to get the sessions of the logged in users
# May 27th 2016, 07:04 okatsuralau Hi, someone knows how to do a IntegrationTestCase to the $this->Auth->setUser() method using database session?
# May 27th 2016, 06:55 unorthodox What time is it there if i may ask?