Skip to content

Commit

Permalink
Adjust redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 committed Mar 26, 2017
1 parent cc4ba6b commit 5f34c4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/modules/user/controllers/Regist.php
Expand Up @@ -166,16 +166,16 @@ public function confirmAction()

$this->redirect()
->withMessage('accountApproved', 'success')
->to(['controller' => 'index', 'action' => 'index']);
->to([]);
} else {
$this->redirect()
->withMessage('confirmedCodeWrong', 'warning')
->to(['controller' => 'index', 'action' => 'index']);
->to([]);
}
} else {
$this->redirect()
->withMessage('incompleteActivationUrl', 'warning')
->to(['controller' => 'index', 'action' => 'index']);
->to([]);
}
}
}
Expand Down

0 comments on commit 5f34c4e

Please sign in to comment.