summaryrefslogtreecommitdiff
path: root/app/Controller/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/User.php')
-rw-r--r--app/Controller/User.php22
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