Trouble Using Cpasswordhelper

I’ve installed CPasswordHelper into YiiRoot/framework/utils in order to assist with password authentication.

Initially I got this error after coding the authentication function.

-------> include(CPasswordHelper.php): failed to open stream: No such file or directory

To fix this error I added the following code to the core classes array in YiiBase.php


'CPasswordHelper' => '/utils/CPasswordHelper.php',

After that, I received the following error.

-------> CSecurityManager and its behaviors do not have a method or closure named "generateRandomString".

Now I am stumped. Has anybody had this problem?

My CSecurityManager file was out of date. FIXED