Revision #10 was created by suriyansuresh on Nov 1, 2010, 3:03:36 PM.
another login update
Content
[...]
For each module, change its _UserIdentity_ authenticate() function to perform the appropriate validation.
**Step 2**
For each module, add the following lines to its main page. For example, for the Customer module, add to Customer/CustomerModule.php Add the following lines to init():
[...]
public function actionLogout() {
Yii::app()->user->logout(false);
$this->redirect(Yii::app()->getModule('admin')->user->loginUrlcustomer')->user->loginUrl);
}
```
**Point sub-domain to module**
This tips from the forum URL [Subdomain to module](http://www.yiiframework.com/forum/index.php?/topic/7242-subdomain-and-modules/page__p__36698#entry36698 "Subdomain to module")
There is a feature called "Parameterizing Hostnames" ([described on this pages](http://www.yiiframework.com/doc/guide/1.1/en/topics.url "described on this pages")). add the following lines to main.php