Problem with the Blog Tutorial

Hello. I tried to follow the blog tutorial (the part related to authentication) and I get the following error:

Property "User.salt" is not defined.

This property was never added to the User class in the tutorial. What I must do?

Thanks a lot.

try




protected function generateSalt()

{

    return uniqid('',true);

}



In your User Model

Apart of following the tuto, I recommend you that you double check the chapter objects with the ones provided on the yii/demos/blog folder… So, anything missing from the chapter, is included on the demo.