summaryrefslogtreecommitdiff
path: root/app/Controller/User.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-07 20:06:31 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-07 20:06:31 -0400
commit4f32352fe62e47ad5ea760eb00493bdc061b2407 (patch)
tree8d5f087907dd5cba196dbfc06e626b3146659e1f /app/Controller/User.php
parent9d9e3afba2054bfa23ba6f019b7c8885c2d8415e (diff)
Add user filter/condition for notifications
Diffstat (limited to 'app/Controller/User.php')
-rw-r--r--app/Controller/User.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Controller/User.php b/app/Controller/User.php
index b049c926..4cea06b1 100644
--- a/app/Controller/User.php
+++ b/app/Controller/User.php
@@ -105,9 +105,11 @@ class User extends Base
if ($valid) {
- if ($this->user->create($values)) {
+ $user_id = $this->user->create($values);
+
+ if ($user_id !== false) {
$this->session->flash(t('User created successfully.'));
- $this->response->redirect('?controller=user');
+ $this->response->redirect($this->helper->url->to('user', 'show', array('user_id' => $user_id)));
}
else {
$this->session->flashError(t('Unable to create your user.'));