nineinchnick / yii-usr

Yii framework module for user authentication, password reset, registration and profile updating.
http://demo.niix.pl
MIT License
36 stars 24 forks source link

SearchForm extends BaseUsrForm not CFormModel #58

Closed rossaddison closed 9 years ago

rossaddison commented 9 years ago

Bug. I have tried your code recently (SearchForm.php) and had to change SearchForm extends CFormModel to SearchForm extends BaseUsrForm otherwise Line 343 of UsrModule raises an error.

$form->webUser = Yii::app()->user;

Error message: SearchForm.webUser is undefined.

$webUsr is a public variable under the BaseUsrForm not under the CFormModel.

The code is working fine otherwise. Thanks for all your efforts. Will tackle email verification a little bit later.

nineinchnick commented 9 years ago

Sorry about that, totaly my fault for not checking it.