Skip to content

Commit

Permalink
security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed Jun 4, 2015
1 parent 9a21f42 commit c0aee5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function beforeAction($action)

if(Yii::$app->user->isGuest){
Yii::$app->user->setReturnUrl(Yii::$app->request->url);
return $this->redirect(['/admin/sign/in']);
Yii::$app->getResponse()->redirect(['/admin/sign/in'])->send();
return false;
}
else{

Expand Down

0 comments on commit c0aee5d

Please sign in to comment.