Skip to content

Commit

Permalink
use plain view for www login
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundspriede committed Apr 19, 2015
1 parent 79f8a48 commit 23ff77d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class LoginController extends Controller
* Displays the login page
*/
public function actionLogin()
{
{
if (Yii::app()->user->isGuest) {
$model=new UserLogin;
// collect user input data
Expand All @@ -31,8 +31,17 @@ public function actionLogin()

// display the login form
//$this->render('/user/login',array('model'=>$model));

// special view for www login form

if (isset($_GET['www'])) {

$this->render('/user/www_login',array('model'=>$model));
}
else
$this->render('/user/ace_login',array('model'=>$model));
} else
} elseif (isset($_GET['www'])) Yii::app()->end();
else
$this->redirect(Yii::app()->controller->module->returnUrl);
}

Expand Down

0 comments on commit 23ff77d

Please sign in to comment.