# |
Jul 8th 2019, 16:31 |
genellern |
@half2me did you find out why? I had the same issue last week but haven't had time to figure out what's going on |
# |
Jul 8th 2019, 15:58 |
niel.archer |
@olanowsubomi have you read https://book.cakephp.org/3.0/en/installation.html |
# |
Jul 8th 2019, 15:46 |
olanowsubomi |
the issue is i read that somewhere as part of setting up cakephp for application development but i suppose the author is using old version of cake php to teach this which the newer one i downloaded does not contain, but are you insunuating i dont need to set this up in newer version of cakephp to send email from my app.? |
# |
Jul 8th 2019, 15:38 |
niel45 |
@olanowsubomi, can't understand your question |
# |
Jul 8th 2019, 15:38 |
info315 |
are you guys serious on deprecated argument order for allowEmptyString? ``` $ grep -ri '\->allowEmptyString(' | wc -l 364 ``` I ask because I don't want to need to change it back with 4.x |
# |
Jul 8th 2019, 15:37 |
em. |
@admad @neon1024 I know its unusual. But its allowed by the HTTP spec. https://tools.ietf.org/html/rfc7230#section-3.3 Guzzle allows it. Most clients do. |
# |
Jul 8th 2019, 15:36 |
olanowsubomi |
is there no one to help with my question? |
# |
Jul 8th 2019, 15:30 |
olanowsubomi |
hello is anybody there? |
# |
Jul 8th 2019, 15:29 |
niel45 |
@neon1024, any request method can have a body, and nothing should be assumed by that |
# |
Jul 8th 2019, 15:29 |
olanowsubomi |
or can anybody tell me the file path to this from my my_app_name? |
# |
Jul 8th 2019, 15:24 |
olanowsubomi |
? |
# |
Jul 8th 2019, 15:24 |
olanowsubomi |
the list of files in the config file are schema, .en.default, app.default, app, bootstrap, bootstrap_cli, paths, requirements, routes which file contain those code |
# |
Jul 8th 2019, 15:15 |
admad |
@em. How can a GET request have a body? |
# |
Jul 8th 2019, 15:15 |
neon1024 |
So your version might be out of date? |
# |
Jul 8th 2019, 15:15 |
neon1024 |
There also isn’t a core.php.default any more https://github.com/cakephp/cakephp/tree/2.x/app/Config |
# |
Jul 8th 2019, 15:14 |
neon1024 |
https://book.cakephp.org/2.0/en/installation.html |
# |
Jul 8th 2019, 15:12 |
neon1024 |
The `core.php.default` file gets copied to `core.php` so edit that one |
# |
Jul 8th 2019, 15:11 |
slackebot |
'smtp_mail_from_name', 'noreply' ); Configure::write( 'smtp_mail_from_addr', 'tricks.cake@gmail.com' );' so that my app could send an email. |
# |
Jul 8th 2019, 15:11 |
olanowsubomi |
though i have set up the database but i still need to set up this'// SMTP Configure::write( 'smtp_type', 'tls' ); Configure::write( 'smtp_timeout', 60 ); Configure::write( 'smtp_host', 'smtp.gmail.com' ); Configure::write( 'smtp_port', 465 ); Configure::write( 'smtp_user', 'tricks.cake@gmail.com' ); Configure::write( 'smtp_password', '' ); Configure::write( 'smtp_encryption', 'ENC_SSL' ); Configure::write( |
# |
Jul 8th 2019, 15:11 |
neon1024 |
I don’t understand the question |
# |
Jul 8th 2019, 15:08 |
olanowsubomi |
hello, please can anyone help me with cakephp file arrangement, in up my database i want to access this file /app/config/core.php.default |
# |
Jul 8th 2019, 15:04 |
neon1024 |
Perhaps it shouldn’t assume and should just throw an exception? |
# |
Jul 8th 2019, 15:04 |
neon1024 |
So it stands to reason that the client assumes you meant Post |
# |
Jul 8th 2019, 15:03 |
neon1024 |
A post request would have a body |
# |
Jul 8th 2019, 15:03 |
neon1024 |
A get request doesn’t have a body, it would have query params |
# |
Jul 8th 2019, 15:03 |
neon1024 |
Sounds sensible to me |
# |
Jul 8th 2019, 15:03 |
neon1024 |
Oh, wait, that would be Post to Get |
# |
Jul 8th 2019, 15:03 |
neon1024 |
Ensure you are not using the PRG pattern anywhere |
# |
Jul 8th 2019, 14:44 |
em. |
Should i open an issue? |
# |
Jul 8th 2019, 14:40 |
em. |
CakePHP Http client converts a GET request into a POST request if the body is set.. It’s an unusual use case. But still strange behavior. |
# |
Jul 8th 2019, 14:03 |
martin |
Need to check if I can use the new middleware for that, so it is also future-proof :P |
# |
Jul 8th 2019, 14:00 |
martin |
did use https://github.com/uafrica/oauth-server in the past, but not maintained anymore |
# |
Jul 8th 2019, 14:00 |
jeremyharris |
that I know nothing about, sorry |
# |
Jul 8th 2019, 14:00 |
jeremyharris |
oh |
# |
Jul 8th 2019, 14:00 |
martin |
but that pull request is login in with oauth by other provider. I want to run an oauth server |
# |
Jul 8th 2019, 13:59 |
jeremyharris |
I don’t know the full history behind why it was abandoned (and haven’t looked at the code), you might be able to re-open the discussion with @cleptric and help solve some of the problems they had in order to get it in the library. I’m sure a lot of people would appreciate an oauth2 authenticator built in |
# |
Jul 8th 2019, 13:58 |
martin |
Hmm, I don’t think that they will add it to the authentication plugin by it self? |
# |
Jul 8th 2019, 13:57 |
jeremyharris |
you might be able to use some of this work: https://github.com/cakephp/authentication/pull/110 it was closed because the implementation wasn’t up to standards |
# |
Jul 8th 2019, 13:56 |
martin |
Yes that is true |
# |
Jul 8th 2019, 13:56 |
jeremyharris |
isn’t it both? it’s been a while since I’ve worked with it, but it authenticates and authorizes (via scope) right? either way, the libs should work with it |
# |
Jul 8th 2019, 13:54 |
martin |
I did somewhere that is is not added by default because oauth2 is not authentication |