change call to encrypting to Yii::app()->getModule('user')->encrypting()