# |
Jul 14th 2017, 15:46 |
jeremyharris |
what is your AuthComponent configuration? |
# |
Jul 14th 2017, 15:46 |
dvd_ |
My user saved in DB have password hased |
# |
Jul 14th 2017, 15:45 |
dvd_ |
$this->Auth->identify() always return false |
# |
Jul 14th 2017, 15:44 |
jeremyharris |
can you elaborate dvd_ ? |
# |
Jul 14th 2017, 15:43 |
dvd_ |
Hi, they was have issues in login auth? |
# |
Jul 14th 2017, 15:41 |
jeremyharris |
glad I could help @ericadeefox ! |
# |
Jul 14th 2017, 15:41 |
jeremyharris |
hi! |
# |
Jul 14th 2017, 15:41 |
ericadeefox |
dude thank you @jeremyharris, oh wow. this is gonna make a world of difference to anyone who uses this plugin |
# |
Jul 14th 2017, 15:40 |
matter_ |
Hello |
# |
Jul 14th 2017, 15:40 |
ericadeefox |
oh my god this is _so f-- simple good golly!!_ |
# |
Jul 14th 2017, 15:40 |
ericadeefox |
it'll also make it easier for the current user |
# |
Jul 14th 2017, 15:38 |
jeremyharris |
that might make it easier for future users :slightly_smiling_face: |
# |
Jul 14th 2017, 15:35 |
ericadeefox |
dude actually if I'm making a pull request anyway why don't I just call `disableSessionStatusCheck()` from within the component and wrap _that_ in a cli check? |
# |
Jul 14th 2017, 15:29 |
ericadeefox |
that's what I had originally wanted to do because it was like, well, am I really going to need to test _whether or not the session exists_? |
# |
Jul 14th 2017, 15:28 |
jeremyharris |
well, you could just *always* disable it since you know for a fact cake starts the session for you |
# |
Jul 14th 2017, 15:28 |
ericadeefox |
I had been discouraged from doing that yesterday. =/ x_x |
# |
Jul 14th 2017, 15:27 |
jeremyharris |
yeah, just wrap it in a cli check |
# |
Jul 14th 2017, 15:27 |
jeremyharris |
after the component is added to your controller, do $this->ComponentName->FacebookRedirect->disable |
# |
Jul 14th 2017, 15:27 |
ericadeefox |
I wonder if I can from my app controller now, hm. not like that's a long-term solution |
# |
Jul 14th 2017, 15:26 |
ericadeefox |
I'm just trying to figure out how to call `disableSessionStatusCheck()` now... |
# |
Jul 14th 2017, 15:25 |
iqu |
Jeremyharris: this->url->image in my case could do it. thanks |
# |
Jul 14th 2017, 15:24 |
jeremyharris |
correct |
# |
Jul 14th 2017, 15:24 |
ericadeefox |
nope, the object is up in initialize and nowhere else. now, I'm not supposed to create a new FBRLH object in the tests, right? because that would be meaningless |
# |
Jul 14th 2017, 15:22 |
jeremyharris |
iqu like $this->Url->build? |
# |
Jul 14th 2017, 15:22 |
jeremyharris |
yep, assuming you overwrote their beforeFilter to not re-create the object |
# |
Jul 14th 2017, 15:22 |
ericadeefox |
ok now I've got all that in initialize instead of beforeFilter, so I should be able to use `disableSessionStatusCheck()` now? |
# |
Jul 14th 2017, 15:21 |
iqu |
is there like routeHelper? i have tag like <video class="video-poster" poster='img/temp/intro2.jpg'> and i have not found any "beuatiful" way to to print route 'img/temp/intro2.jpg' |
# |
Jul 14th 2017, 15:17 |
ericadeefox |
^^very good point!!! four days of discomfort and mild sobbing is beans compared to what could've been experienced by several other devs |
# |
Jul 14th 2017, 15:17 |
jeremyharris |
np, happy to help |
# |
Jul 14th 2017, 15:16 |
mikesmoniker |
Remember: the next dev will appreciate the PR. |
# |
Jul 14th 2017, 15:16 |
ericadeefox |
thank you so much for holding my hand through that lol |
# |
Jul 14th 2017, 15:16 |
jeremyharris |
it was a multi-headed monster you had to deal with, fun fun |
# |
Jul 14th 2017, 15:15 |
jeremyharris |
for next time :) |
# |
Jul 14th 2017, 15:15 |
ericadeefox |
^^yes |
# |
Jul 14th 2017, 15:15 |
ericadeefox |
^^yes, yes it is. a stack trace would've been immensely helpful. |
# |
Jul 14th 2017, 15:15 |
jeremyharris |
if they had it in initialize, the problem would be solved in 2secs, though you still would have needed to see that it was created there |
# |
Jul 14th 2017, 15:15 |
ericadeefox |
but, yeah, no, y'all are right. I don't know why I didn't look in the plugin's vendor code rather than the SDK when I was trying to figure out how FBRLH gets built so quickly. |
# |
Jul 14th 2017, 15:15 |
jeremyharris |
they are throwing it, but following the code up through the process to see *where* is the important lesson here |
# |
Jul 14th 2017, 15:14 |
ericadeefox |
hell, I'd assumed since it was the FB SDK throwing me the exception, that I ought to be skulking around _there_ instead of the plugin |
# |
Jul 14th 2017, 15:14 |
jeremyharris |
or extend the component and do a bit of copy/paste for your own needs |
# |
Jul 14th 2017, 15:13 |
mikesmoniker |
Fork the plugin, make the PR, and in the mean time use your fork via Composer. |