Hi,
Found a couple of bugs in 0.4:
ERROR: Property "CWebUser.registrationUrl" is not defined.
In views/user/login.php on line 42 you need to change the line like this:
<?php echo CHtml::link(Yii::t("UserModule.user", "Registration"),Yii::app()->User->registrationUrl); ?> | <?php echo CHtml::link(Yii::t("UserModule.user", "Lost Password?"),Yii::app()->User->recoveryUrl); ?>
Note the uppercase ‘u’ in ‘User’ - Yii::app()->User->registrationUrl
ERROR: CWebUser does not have a method named "isAdmin".
There are similar errors in views/user/myprofile.php on line 14, 15 and 16:
Change to this:
array('label'=>Yii::t('UserModule.user', 'Manage User'), 'url'=>array('admin'), 'visible' => Yii::app()->User->isAdmin()),
array('label'=>Yii::t('UserModule.user', 'Manage Roles'), 'url'=>array('role/admin'), 'visible' => Yii::app()->User->isAdmin()),
array('label'=>Yii::t('UserModule.user', 'List User'), 'url'=>array('index'), 'visible' => !Yii::app()->User->isAdmin()),
There may be others, not checked everything yet.
Edit:
Updating this as I go along…
views/user/profile-edit.php has the same errors on lines 15 and 20.
Just change to Yii::app()->User->isAdmin()
Also similar error littered throughout controllers/UserController.php
Different bugs in models/UserLogin.php
Line 69 change ERROR_STATUS_NOTACTIV to ERROR_STATUS_NOTACTIVE
Line 72 change ERROR_STATUS_BAN to ERROR_STATUS_BANNED