diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 22:19:49 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 22:19:49 -0400 |
commit | 09da289c2fb18475f372bee24e885617da484e0b (patch) | |
tree | 95d1869ba3236ccdd9234d7909fc16c495c84d44 /app/Controller/User.php | |
parent | 9283fb88d80cb355ff98364a9a57b657fc511d98 (diff) |
Move slack, hipchat and jabber integrations to plugins
Diffstat (limited to 'app/Controller/User.php')
-rw-r--r-- | app/Controller/User.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/Controller/User.php b/app/Controller/User.php index 85b80d79..b5f4edeb 100644 --- a/app/Controller/User.php +++ b/app/Controller/User.php @@ -214,6 +214,28 @@ class User extends Base } /** + * Display user integrations + * + * @access public + */ + public function integrations() + { + $user = $this->getUser(); + + if ($this->request->isPost()) { + $values = $this->request->getValues(); + $this->userMetadata->save($user['id'], $values); + $this->session->flash(t('User updated successfully.')); + $this->response->redirect($this->helper->url->to('user', 'integrations', array('user_id' => $user['id']))); + } + + $this->response->html($this->layout('user/integrations', array( + 'user' => $user, + 'values' => $this->userMetadata->getall($user['id']), + ))); + } + + /** * Display external accounts * * @access public |