# |
Dec 11th 2019, 12:08 |
boydbuenodemesquita |
This one doesn't seem to use the same method of setting the response though. So it doesn't seem like it's just a drop in replacement. But I'll definitely try one of the other ones. |
# |
Dec 11th 2019, 12:05 |
narendravaghela |
This is an improved version |
# |
Dec 11th 2019, 12:05 |
boydbuenodemesquita |
Thanks for the help guys. :slightly_smiling_face: |
# |
Dec 11th 2019, 12:04 |
narendravaghela |
check this one as well - https://github.com/sprintcube/cakephp-rest |
# |
Dec 11th 2019, 12:04 |
boydbuenodemesquita |
Yeah, it seems to be gone since a week or so. I'll try a fork, one of the forks you sent seems promising. |
# |
Dec 11th 2019, 12:04 |
narendravaghela |
the company has removed that repo from their account |
# |
Dec 11th 2019, 12:03 |
challgren |
Yeah, so @boydbuenodemesquita maybe use a fork |
# |
Dec 11th 2019, 12:03 |
narendravaghela |
if you see the readme, he hasn't change the installation line ```composer require multidots/cakephp-rest-api``` |
# |
Dec 11th 2019, 12:02 |
narendravaghela |
years ago under my organization - multidots |
# |
Dec 11th 2019, 12:02 |
narendravaghela |
The original repo was created by me, someone has duplicated i |
# |
Dec 11th 2019, 12:02 |
narendravaghela |
I mean yes |
# |
Dec 11th 2019, 12:01 |
narendravaghela |
Nah |
# |
Dec 11th 2019, 12:01 |
challgren |
What I would suggest since its in vendor/ maybe creating a repo for yourself and upload it so you still have it |
# |
Dec 11th 2019, 12:01 |
challgren |
Thats not you? |
# |
Dec 11th 2019, 12:01 |
challgren |
https://github.com/vishal2995/cakephp-rest-api/commit/61f0e999224d776fb0bd797aedc32f1d6b3a787c |
# |
Dec 11th 2019, 12:00 |
narendravaghela |
nope |
# |
Dec 11th 2019, 12:00 |
challgren |
I found https://github.com/vishal2995/cakephp-rest-api |
# |
Dec 11th 2019, 12:00 |
challgren |
@narendravaghela didnt you make a fork of this? |
# |
Dec 11th 2019, 12:00 |
boydbuenodemesquita |
Yeah, I was looking for that as well. Thanks for checking! I still have the package locally, so I think I can make it work. |
# |
Dec 11th 2019, 12:00 |
challgren |
Ahh maybe! https://github.com/innovato/cakephp-rest-api |
# |
Dec 11th 2019, 11:58 |
challgren |
@boydbuenodemesquita Ive been searching around for a fork you could use but cant really find any |
# |
Dec 11th 2019, 11:43 |
neon1024 |
That would get frustrating for users I think, but it depends on your use-case I suppose. More secure systems might need a shorter session :thinking_face: |
# |
Dec 11th 2019, 11:43 |
neon1024 |
15 minute sessions is super quick imo |
# |
Dec 11th 2019, 11:40 |
challgren |
Seems like the repo owner deleted the project |
# |
Dec 11th 2019, 11:37 |
boydbuenodemesquita |
I'm working on an old project that uses the `multidots/cakephp-rest-api` package. When trying to set up the project on a new environment it seems that this package no longer exists. Does anyone here have any information about what happened? |
# |
Dec 11th 2019, 11:27 |
jotpe |
Okay, thanks @challgren :slightly_smiling_face: |
# |
Dec 11th 2019, 11:19 |
challgren |
15 would probably be more reasonable. On every request the db is updated with the last_activity_time |
# |
Dec 11th 2019, 11:19 |
challgren |
Ours is an hour because thats what we set the session expiration to |
# |
Dec 11th 2019, 11:18 |
jotpe |
Do you have a timespan when a user is active then? Like activity timestamp must be max. 30mins in past? |
# |
Dec 11th 2019, 11:15 |
challgren |
But in my implementation I just have a last activity timestamp and we can generally tell whos active and who isnt |
# |
Dec 11th 2019, 11:14 |
challgren |
Ohh I dont know I use the component still |
# |
Dec 11th 2019, 11:14 |
jotpe |
But there isn't some kind of method in authentication plugin, right? |
# |
Dec 11th 2019, 11:13 |
challgren |
Add a last activity time. You cant really depend on users logging out |
# |
Dec 11th 2019, 11:12 |
jotpe |
What's a good way to see which users are logged in right now? add a field (bool) to the user table and change on login/logout? Or is there something easier? |
# |
Dec 11th 2019, 10:21 |
chechesa |
You have to cook each table. You're welcome :D |
# |
Dec 11th 2019, 09:46 |
gianmarxgagliardi |
thanks for the support Marco |
# |
Dec 11th 2019, 09:38 |
gianmarxgagliardi |
is there a command to cook the whole db without specifying the single table? |
# |
Dec 11th 2019, 09:38 |
gianmarxgagliardi |
ok putting the normal string without env file works |
# |
Dec 11th 2019, 09:37 |
neon1024 |
Morning everyone |
# |
Dec 11th 2019, 09:31 |
gianmarxgagliardi |
i don't understand |
# |
Dec 11th 2019, 09:30 |
gianmarxgagliardi |
? |