# |
Feb 12th 2020, 13:08 |
damiano |
already created |
# |
Feb 12th 2020, 13:08 |
damiano |
@challgren i am trying...thanks, however the cookie authentication supposes that there is a cookie names CookieAuth right? |
# |
Feb 12th 2020, 12:55 |
challgren |
Not sure |
# |
Feb 12th 2020, 12:54 |
damiano |
wrong? |
# |
Feb 12th 2020, 12:53 |
damiano |
@challgren i am dealing with cookies because i want to create the remember_me authetication...i have followed the doc, but i miss a part, is the AuthCookie created automatically? it seems not, i first should create the cookie and then cake will "just update" it... |
# |
Feb 12th 2020, 12:52 |
damiano |
it works so,....ok....but maybe am i just lucky? :) |
# |
Feb 12th 2020, 12:52 |
damiano |
and now it works, without returning anything |
# |
Feb 12th 2020, 12:52 |
damiano |
@challgren i do not know if it is a problem or not...but i tried $this->response->withCookie(new Cookie(......); |
# |
Feb 12th 2020, 12:49 |
challgren |
Did you try $this->response = $this->response->withCookie() |
# |
Feb 12th 2020, 12:45 |
damiano |
at the end of the action |
# |
Feb 12th 2020, 12:45 |
damiano |
@ishan hmm wait i do not see the view if i do return $response |
# |
Feb 12th 2020, 12:44 |
damiano |
@ishan i try |
# |
Feb 12th 2020, 12:38 |
damiano |
guys, do i have to return the response to perfectly create a cookie? |
# |
Feb 12th 2020, 11:54 |
md.islam11 |
its not working . |
# |
Feb 12th 2020, 11:53 |
md.islam11 |
in my request post , I am doing above key-value map. |
# |
Feb 12th 2020, 11:53 |
md.islam11 |
request_items[0][docs][0][file_name] |
# |
Feb 12th 2020, 11:53 |
md.islam11 |
How to write key-value map |
# |
Feb 12th 2020, 11:52 |
md.islam11 |
How to achieve that? |
# |
Feb 12th 2020, 11:52 |
md.islam11 |
request - > has Many requestItems requestItems -> has Many Docs |
# |
Feb 12th 2020, 11:26 |
admad |
@dereuromark hmm, guess bit needs to be looked into further i guess |
# |
Feb 12th 2020, 11:21 |
lilhermit |
Also how to i create migration using type `uuid` creates var_char, using binary doesn't auto-create id |
# |
Feb 12th 2020, 11:18 |
dereuromark |
thats why i am confused |
# |
Feb 12th 2020, 11:18 |
dereuromark |
I am using latest master.. |
# |
Feb 12th 2020, 11:17 |
admad |
Nice work getting your sandbox updated. |
# |
Feb 12th 2020, 11:16 |
admad |
@dereuromark https://github.com/cakephp/cakephp/pull/14241 Don't be a n00b :) |
# |
Feb 12th 2020, 11:15 |
lilhermit |
Hi I notice CakePHP (4) has a BinaryUuidType how do I tell Cakephp the id field (which is binary(16)) is of type BinaryUuid? |
# |
Feb 12th 2020, 11:05 |
damiano |
i do not see the cookie in debugkit |
# |
Feb 12th 2020, 11:05 |
damiano |
$expiry = new Time('+ 1 year'); $this->response->withCookie(new Cookie( 'CookieAuth', ['test@test.com', '$2y$10$7MozJQ1bJ7l65YNq/MfffffVkZVCONNxN9.I/yMc1hKGiYE1/B8GnS'], $expiry )); |
# |
Feb 12th 2020, 11:05 |
damiano |
but is this created or i should return the $response ? |
# |
Feb 12th 2020, 11:04 |
damiano |
padon guys for the stupid question but to create a cookie we do: ```$response = $this->response->withCookie($cookie);``` |
# |
Feb 12th 2020, 11:02 |
slackebot |
gc time let the remember me option to the end |
# |
Feb 12th 2020, 11:02 |
pieceof |
php session maybe controlled by php cookies timelimits and other server configurations the max session duration is configured at php.ini there are at least 2 vars u need.... i cant remember the remember me option if not activated : u have to destroy the session if this request is x time after the last request and not ajax maybe if activated u got nothing to do, server may garbage collect it when the max time is exceed u can try to tweak the |
# |
Feb 12th 2020, 10:54 |
jotpe |
I used the TableLocator to get the TableObject for my Case. |
# |
Feb 12th 2020, 10:52 |
challgren |
I use CakeDC/Users makes things so much easier with the new Authorization/Authentication plugins |
# |
Feb 12th 2020, 10:51 |
damiano |
anyone? |
# |
Feb 12th 2020, 10:50 |
challgren |
Im gonna tough it out and do PRs for stuff I use |
# |
Feb 12th 2020, 10:49 |
spriz |
like there was lots of reason to move from 2.x to 3.x (ORM!) - but not a lot to move from 3.x to 4.x |
# |
Feb 12th 2020, 10:49 |
dereuromark |
yeah, momentan is not picking up right now |
# |
Feb 12th 2020, 10:49 |
spriz |
@dereuromark I have this weird feeling that a lot of people (including myself) is staying on 3.x for a while :) |
# |
Feb 12th 2020, 10:36 |
jotpe |
`Policy for `Cake\ORM\Association\HasMany` has not been defined.` |
# |
Feb 12th 2020, 10:36 |
jotpe |
And get this error message: |