# |
Aug 29th 2019, 03:10 |
kailas |
yeah, i’ve been looking there. my guess is this is an intersection of permissions issues (which is why it’s redirecting) and configuring auth |
# |
Aug 29th 2019, 03:10 |
challgren |
Thats what you want to change in your config |
# |
Aug 29th 2019, 03:10 |
challgren |
https://github.com/CakeDC/users/blob/master/config/users.php#L142 |
# |
Aug 29th 2019, 03:09 |
challgren |
Ohh thats the new middleware one, Im not sure on that. But my guess is in the config under Auth |
# |
Aug 29th 2019, 03:08 |
kailas |
8.4.0 of cakedc/users |
# |
Aug 29th 2019, 03:07 |
kailas |
3.0.4 of cakedc/auth |
# |
Aug 29th 2019, 03:06 |
challgren |
yes |
# |
Aug 29th 2019, 03:06 |
kailas |
of CakeDC/Users? |
# |
Aug 29th 2019, 03:06 |
challgren |
What version you using? |
# |
Aug 29th 2019, 03:05 |
slackebot2 |
‘loginAction’ => [ ‘plugin’ => ‘CakeDC/Users’, ‘controller’ => ‘Users’, ‘action’ => ‘profile’, ‘prefix’ => false ], - shouldn’t it redir to loginAction after successful login? why is it going to / ? - where do i set the logout redirect? seems to be redirecting to /, but then getting stuck in a loop of some type? |
# |
Aug 29th 2019, 03:05 |
kailas |
coolio, thanks! also, i’m stuck at the login and logout redirects (getting stuck in loops). i’ve set a permission : [ ‘plugin’=>‘*’, ‘role’ => ‘user’, ‘controller’ => ‘*’, ‘action’ => ‘*’, ], which i think should let the user go anywhere. after login, i’m redirected to /. when i logout, however, i get in a loop. I have |
# |
Aug 29th 2019, 03:00 |
challgren |
You can follow that format for any other plugin views too |
# |
Aug 29th 2019, 03:00 |
kailas |
oh, nice! |
# |
Aug 29th 2019, 02:58 |
challgren |
https://github.com/CakeDC/users/blob/master/Docs/Documentation/Extending-the-Plugin.md#updating-the-templates |
# |
Aug 29th 2019, 02:47 |
kailas |
I’m using the CakeDC/Users plugin for the first time. I’m interested in changing the login template and profile page. however, what’s the right way to do that? I assume you don’t actually edit the templates in the vendor directory? |
# |
Aug 28th 2019, 21:23 |
maymeow |
any ideas why im getting CSRF misch-match error on form from bootstrap modal??? Dont using any ajax call just simple form in modal |
# |
Aug 28th 2019, 21:21 |
ricksaccous |
once it gets to js it's in the wrong order |
# |
Aug 28th 2019, 21:21 |
ricksaccous |
so lets say you jsonify an array you want to plop as options in a select |
# |
Aug 28th 2019, 21:21 |
ricksaccous |
how many of you ran into the problem of javascript not preserving keys |
# |
Aug 28th 2019, 17:49 |
me.kuskov |
And sorry for my English:( |
# |
Aug 28th 2019, 17:48 |
me.kuskov |
@admad, Oh no! I wanted to use the same version of CakePHP (and other dependencies). But only for different sites one library may be needed, and for another site, for example, other libraries are needed. But CakePHP is needed for all sites. |
# |
Aug 28th 2019, 17:15 |
admad |
@me.kuskov unless you are going to deploy on a floppy drive multiple couples of cakephp (or any other dependency) shouldn't matter |
# |
Aug 28th 2019, 16:50 |
challgren |
Yeah back then it was the norm, I did it myself but quickly learned based on customer feedback having cake installed globally was a big issue |
# |
Aug 28th 2019, 16:50 |
me.kuskov |
Oh, thanks! for sure, I didn’t think about it. Confused by this feature for CakePHP 2.x |
# |
Aug 28th 2019, 16:47 |
challgren |
Plus versioning would be a nightmare say one site needs 3.8 and globally 3.7 is installed. |
# |
Aug 28th 2019, 16:46 |
challgren |
Thats not really recommended since you install CakePHP 3.x via composer |
# |
Aug 28th 2019, 16:45 |
me.kuskov |
Hello! please help me find info on how to use CakePHP 3.x on a hosting - one library for several sites Thank you! |
# |
Aug 28th 2019, 16:02 |
neon1024 |
Only six fields and it seems to work :man-shrugging: I’ll take that |
# |
Aug 28th 2019, 15:59 |
challgren |
I think probably the `newEntity($allTheEmptyFieldsArray)` with a combo of read schema |
# |
Aug 28th 2019, 15:40 |
neon1024 |
Yeah, that seems to work, not ideal. :thinking_face: Perhaps I could read the schema |
# |
Aug 28th 2019, 15:35 |
neon1024 |
Or would it be a matter of `newEntity($allTheEmptyFieldsArray)` |
# |
Aug 28th 2019, 15:35 |
neon1024 |
When creating a `newEntity` is it possible to add all the empty associations? I’m returning it via a JSON web service to Javascript |
# |
Aug 28th 2019, 15:05 |
ricksaccous |
that's pretty handy, i need to get some more js chops because while i feel pretty decent at jquery i feel like if i'm pretty much doing a single page app it gets harder to organize things |
# |
Aug 28th 2019, 15:01 |
alexdd55976 |
@ricksaccous what vue does amazingly for me is: watching changes to json objects. you can do amazing things with it, which makes data reloading very convienient without any views or html replace and stuff |
# |
Aug 28th 2019, 14:32 |
ricksaccous |
alright, i'll look into those things |
# |
Aug 28th 2019, 14:32 |
neon1024 |
Didn’t get to that yet either |
# |
Aug 28th 2019, 14:32 |
neon1024 |
I keep meaning to try https://www.pika.dev/ |
# |
Aug 28th 2019, 14:32 |
neon1024 |
You don’t *have* to build it, if you have a browser which supports ES6 Modules, but if you want cross-browser it’s best to build using something like Webpack or Browserify etc |
# |
Aug 28th 2019, 14:31 |
neon1024 |
The main difference is that it’s built, so you kind of need to learn a build tool also. I use Webpack |
# |
Aug 28th 2019, 14:30 |
ricksaccous |
thanks that's helpful |
# |
Aug 28th 2019, 14:30 |
neon1024 |
Then I found a course on UDemy |