Blog Tutorial Elaboration required in "Authenticating User"

Hi,

If this piece of information is available some where else please redirect me to that url.

I think some more elaboration may be required in "Authenticating User" Section of Blog Tutorial.

It is not clear where exactly following code snippet is to be placed.




$identity=new UserIdentity($username,$password);

$identity->authenticate();

switch($identity->errorCode)

{

    case UserIdentity::ERROR_NONE:

        Yii::app()->user->login($identity);

        break;

    ......

}



I am unable to login to the blog app at this step.

Thanks & Regards,

Ashvini

In the text above the code snippet it says:

So this code should not be written somewhere in your blog tutorial code.

Make sure you exactly followed the steps in the tutorial then it have to work. You could also look at the finished blog demo app (demo folder) which comes with the yii download to find your mistake.

Hi,

The problem I have mentioned is resolved.

This question is irrelevant. I did a typo while writing bits of code that are supposed to be added as per tutorial.

Regards,

Ashvini