Log message #4124649

# At Username Text
# Mar 13th 2018, 16:32 dereuromark there should only be one table, but different roles and additional data etc linked to this.
# Mar 13th 2018, 16:31 dereuromark xinobi: what you want is usually not a good design.
# Mar 13th 2018, 16:30 jeremyharris e.g., override FormAuthenticate::authenticate to iterate through your tables, setting the config userModel and just reusing the default _findUser method
# Mar 13th 2018, 16:29 jeremyharris not the component, but the Authenticate object. that’s where you want to look. Look at FormAuthenticate (or whatever base authenticator you’re using) and extend that to fit your needs
# Mar 13th 2018, 16:28 xinobi jeremyharris I need to pass an array of models... but the base auth component only supports a string so I guess I would need to implement my own component yes
# Mar 13th 2018, 16:26 jeremyharris xinobi you can create additional authenticators that extend the authenticator you’re using (e.g. Form) and add it to your authenticate array, with configuration per-authenticator. For example, create a CustomAuthenticate extends FormAuthenticate, then configure it in the auth component with the different userModel
# Mar 13th 2018, 16:19 xinobi does the auth component support multiple model? I need to authenticate users from different tables
# Mar 13th 2018, 16:00 savant You can invite someone to the CakePHP slack via the invite app: http://cakesf.herokuapp.com/
# Mar 13th 2018, 16:00 savant @ankitgsolanki why did you unpin that?
# Mar 13th 2018, 15:39 dereuromark just debug() the env() part in bootstrap and see/find out.
# Mar 13th 2018, 15:39 greenjam94 ``` /** * Debug Level: * * Production Mode: * false: No error messages, errors, or warnings shown. * * Development Mode: * true: Errors and warnings shown. */ 'debug' => true, ``` But all I see on the page is: `An Internal Server Error Occurred`
# Mar 13th 2018, 15:38 dereuromark depends on your env config
# Mar 13th 2018, 15:38 greenjam94 debugging or not..
# Mar 13th 2018, 15:38 dereuromark the config file? not really.
# Mar 13th 2018, 15:37 greenjam94 gotcha, thanks.. any chance it’s cacheable?
# Mar 13th 2018, 15:37 dereuromark See https://github.com/cakephp/app/blob/master/config/app.default.php#L12 env() part
# Mar 13th 2018, 15:37 dereuromark it can also come from env :slightly_smiling_face:
# Mar 13th 2018, 15:30 greenjam94 also, it’s a test server, nothing in production
# Mar 13th 2018, 15:29 greenjam94 not in version control, it’s something i’m directly changing on the server.. I just don’t see it taking affect
# Mar 13th 2018, 15:26 dereuromark this will then not be shipped (or accidentally deployed) to production
# Mar 13th 2018, 15:26 dereuromark instead in the local file (I call mine app_local.php) you can then overwrite it locally to true
# Mar 13th 2018, 15:26 dereuromark is app.php in version control or not? the one in version control must always be set to false
# Mar 13th 2018, 15:21 greenjam94 a while ago I set debug to false in config/app.php, what do I need to do to re-enable it? Setting it to true doesn’t seem to help
# Mar 13th 2018, 15:13 popperz0r looks good anysson!
# Mar 13th 2018, 15:04 alysson-azevedo http://www.bravo-kernel.com/2015/04/how-to-use-a-cakephp-3-rest-api/
# Mar 13th 2018, 15:03 popperz0r anyone use them, or have any other tools to suggest?
# Mar 13th 2018, 15:03 popperz0r https://github.com/CakeDC/cakephp-api
# Mar 13th 2018, 15:03 popperz0r https://github.com/multidots/cakephp-rest-api
# Mar 13th 2018, 15:03 popperz0r ive seen this repos
# Mar 13th 2018, 15:02 popperz0r Hello, ill need to create a full rest api for our saas and planned to use cakephp for it. What do you advice me to use as add-ons?
# Mar 13th 2018, 13:47 megan yeah no collusion allowed :)
# Mar 13th 2018, 13:33 neon1024 I can’t say because the voting is anonymised
# Mar 13th 2018, 12:50 spencdev whatcha gonna talk about? x)
# Mar 13th 2018, 11:46 neon1024 I’m waiting to see if my talk gets selected before buying a ticket
# Mar 13th 2018, 11:42 yadav.manu36 i have follow below url https://github.com/cakephp/bake/issues/391
# Mar 13th 2018, 11:42 yadav.manu36 @dereuromark this issue has solved
# Mar 13th 2018, 11:28 acosonic @dereuromark Yes I think so...
# Mar 13th 2018, 11:19 megan cakefest.org/submit
# Mar 13th 2018, 11:19 megan Who's coming to CakeFest this year? :) CFP closes in 2 days - so if you are keen to be a speaker, now is the time to submit!
# Mar 13th 2018, 11:16 dereuromark there is no release yet, dev-... branch
# Mar 13th 2018, 11:14 yadav.manu36 for 3.next