? Success

User tests: Successful: Unsuccessful:

avatar speedy111
speedy111
21 Mar 2014

Didn't give issues, implemented for good measure

avatar jurianeven jurianeven - open - 21 Mar 2014
avatar jurianeven
jurianeven - comment - 21 Mar 2014

I've not implemented code to handle the case when $this->app->login() fails (when it returns false). The previous code also didn't handle it. If that also needs to be altered it could be done with another PR.

avatar Bakual
Bakual - comment - 21 Mar 2014

Imho it just doesn't matter at all. The event is fired in https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/application/cms.php#L587 and the response isn't stored.

So we can return whatever we want. I think returning true or false may help understand the code in that you know it triggered or not. But that's all. There is no actual function to it.

avatar jurianeven
jurianeven - comment - 21 Mar 2014

I think returning true or false may help understand the code in that you know it triggered or not.

I disagree. If it's not stored then there's no point in returning a boolean. IMHO it even makes it harder to understand, returning false (or true) makes you think the returned value would have an effect.

There is no actual function to it.

True, it has no effect (in this case).

avatar Bakual
Bakual - comment - 21 Mar 2014

PR is fine with me.

Error handling is done by the actual cookie plugin and the application. I don't think we need anything here. Cookie login should be as invisible as possible anyway :smile:

Care to do a tracker?

avatar jurianeven
jurianeven - comment - 21 Mar 2014
avatar Bakual
Bakual - comment - 21 Mar 2014

Thanks. And test is fine :+1:

avatar infograf768 infograf768 - change - 24 Mar 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-03-24 10:22:47
avatar infograf768 infograf768 - close - 24 Mar 2014
avatar infograf768 infograf768 - reference | - 24 Mar 14
avatar infograf768 infograf768 - merge - 24 Mar 2014
avatar infograf768 infograf768 - close - 24 Mar 2014
avatar jurianeven
jurianeven - comment - 24 Mar 2014

Thanks, guys! :smile:

avatar jurianeven jurianeven - head_ref_deleted - 24 Mar 2014
avatar Bakual Bakual - reference | cf6b157 - 12 May 14

Add a Comment

Login with GitHub to post a comment