# |
Jan 31st 2018, 19:35 |
hmic |
your auth config should look like that: 'Auth' => [ 'Form1' => ['className' => 'Form', ...], ['Form2' => ['className' => 'Form', ...]]; |
# |
Jan 31st 2018, 19:33 |
zmurphy |
I may be able to do it by swapping out the config based on the controller now that I think of it |
# |
Jan 31st 2018, 19:32 |
zmurphy |
I'm not sure I follow. In this case I need two Form authenticates, but obviously that would have duplicate keys in the authenticate array so I'm not sure how to configure that |
# |
Jan 31st 2018, 19:27 |
hmic |
probably an example in the book |
# |
Jan 31st 2018, 19:27 |
edgaras.janusauskas |
``` public $components = array( 'Auth' => array( 'className' => 'MyAuth' ) ); ``` |
# |
Jan 31st 2018, 19:27 |
hmic |
you need to call them different and provide a className key to the config array, to let cake know it's form auth |
# |
Jan 31st 2018, 19:26 |
hmic |
sure |
# |
Jan 31st 2018, 19:25 |
zmurphy |
Is it possible to configure auth with two different form configurations for two different user models? |
# |
Jan 31st 2018, 18:21 |
meder |
is there an easy way to alias a component if you're specifying it with public $Components vs loadComponent? |
# |
Jan 31st 2018, 18:01 |
meder |
in 4? |
# |
Jan 31st 2018, 18:01 |
meder |
dereuromark: do you think cake will add an option so pagination doesnt throw an exception and redirect much like your paginator component does? |
# |
Jan 31st 2018, 17:15 |
dereuromark |
neon: multi select checkbox fields usually |
# |
Jan 31st 2018, 17:01 |
zmurphy |
Ah, I found it. It was being created by $this->Form->controls not $this->Form->create |
# |
Jan 31st 2018, 16:57 |
neon1024 |
I didn’t think a form created a `<legend>` element |
# |
Jan 31st 2018, 16:34 |
zmurphy |
Does anyone know how to set the text of a form's legend in 3.5? Other than screwing with the the template I don't see any documentation on setting the text of the legend. I'm using a null context but the legend is defaulting to 'New Registrant' which is all sorts of wrong for this form. |
# |
Jan 31st 2018, 15:55 |
dereuromark |
not in my docs, I am sure :slightly_smiling_face: |
# |
Jan 31st 2018, 15:54 |
frent |
I thought I read it somewhere. Anyways I see the mistake. Thanks |
# |
Jan 31st 2018, 15:52 |
dereuromark |
$this->MyTable->do($this->AuthUser->...()) |
# |
Jan 31st 2018, 15:52 |
dereuromark |
instead you should pass it in using the existing component layer |
# |
Jan 31st 2018, 15:52 |
dereuromark |
are you sure thats documented? using the trait inside the model layer is not a good idea |
# |
Jan 31st 2018, 15:51 |
frent |
if I do that I get followering error:s Table "App\Model\Table\UsersTable" is not associated with "_config" |
# |
Jan 31st 2018, 15:51 |
frent |
I loaded the AuthUserTrait in AppTable as described in the documentation. not AclTrait. |
# |
Jan 31st 2018, 15:50 |
dereuromark |
sounds like they are not |
# |
Jan 31st 2018, 15:50 |
dereuromark |
are both traits on the class? |
# |
Jan 31st 2018, 15:48 |
frent |
Anyone got any ideas? |
# |
Jan 31st 2018, 15:48 |
frent |
Hi! We are having problems with cakephp-tinyauth, it says Unknown method "_getUserRoles", being called from AuthUserTrait. Although the function is in AclTrait |
# |
Jan 31st 2018, 15:39 |
javier_rodri1989 |
You know |
# |
Jan 31st 2018, 15:37 |
javier_rodri1989 |
File uploaded https://cakesf.slack.com/files/U8W9G2EK0/F91JTE50C/-.txt / https://slack-files.com/T053DPNCM-F91JTE50C-b641eb8185 - I have this in the UsersController but the Auth-andgt;identyfy() does not bring anything |
# |
Jan 31st 2018, 15:36 |
javier_rodri1989 |
yes |
# |
Jan 31st 2018, 15:36 |
hmic |
admad/cakephp-jwt-auth |
# |
Jan 31st 2018, 15:35 |
javier_rodri1989 |
You have used the library jwt cakephp? |
# |
Jan 31st 2018, 14:13 |
johnwayne |
empty select by incompleted can ignore, that was wrong copied |
# |
Jan 31st 2018, 14:12 |
johnwayne |
https://pastebin.com/WPsLfbMm |
# |
Jan 31st 2018, 14:12 |
johnwayne |
here is my code, so I want to make count by month for incompleted and for completed orders. CompletedOrders works, but why I am getting same value for incompletedOrders too? |
# |
Jan 31st 2018, 14:09 |
neon1024 |
Right, well time to learn about Make, Python and Sphinx :slightly_smiling_face: |
# |
Jan 31st 2018, 13:37 |
dereuromark |
no probs :slightly_smiling_face: |
# |
Jan 31st 2018, 13:30 |
admad |
i contemplated whether to bump minor but since there was no API change i just bumped patch :slightly_smiling_face: |
# |
Jan 31st 2018, 13:27 |
dereuromark |
ok I deserved that for being too lazy to just do it myself^^ https://github.com/dereuromark/cakephp-tools/commit/01bc7c4c4df60ce9f6d170e18dc8c1d0f5501627 - thx |
# |
Jan 31st 2018, 13:18 |
admad |
@dereuromark done |
# |
Jan 31st 2018, 13:11 |
admad |
Most often the cause of problem is some character in non-english langauges. |
# |
Jan 31st 2018, 13:11 |
admad |
sphinx is a beast. No one beside markstory deals with it on the team :P |