You know that CWebUser has a afterLogin($fromCookie) method.
How do I access states from the user that was just logged in?
public function afterLogin($fromCookie) {
parent::afterLogin($fromCookie);
echo Yii::app()->user->email; // this raises Property "PortalWebUser.email" is not defined.
}