Skip to content

Commit

Permalink
Merge pull request #15 from karasmg/bugfix
Browse files Browse the repository at this point in the history
little bug with profile
  • Loading branch information
krivochenko authored Nov 8, 2017
2 parents 89f29b3 + 3af9463 commit 4dd8369
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ public function actionResetPassword($token)

public function actionProfile()
{
if (\Yii::$app->user->isGuest) {
return $this->redirect(Url::toRoute('/login'));
}
$model = Yii::$app->user->identity;
$changePasswordForm = new ChangePasswordForm;
$changeEmailForm = new ChangeEmailForm;
Expand Down

0 comments on commit 4dd8369

Please sign in to comment.