summaryrefslogtreecommitdiff
path: root/app/Controller/Config.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-02 23:41:12 -0800
committerFrédéric Guillot <fred@kanboard.net>2014-09-02 23:41:12 -0800
commitd68ff648b1995c14506d4c61c9d97dc7f599496f (patch)
tree82a2879ee26a4edd30adf8b9fd7b777e17068c23 /app/Controller/Config.php
parent7bb09c3f9b3440cf297104f32e80050601d61533 (diff)
Refactoring of user management (ui)
Diffstat (limited to 'app/Controller/Config.php')
-rw-r--r--app/Controller/Config.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/app/Controller/Config.php b/app/Controller/Config.php
index 48bfb9cf..a364c5f4 100644
--- a/app/Controller/Config.php
+++ b/app/Controller/Config.php
@@ -19,27 +19,15 @@ class Config extends Base
{
$this->response->html($this->template->layout('config_index', array(
'db_size' => $this->config->getDatabaseSize(),
- 'user' => $_SESSION['user'],
- 'user_projects' => $this->project->getAvailableList($this->acl->getUserId()),
- 'notifications' => $this->notification->readSettings($this->acl->getUserId()),
'languages' => $this->config->getLanguages(),
'values' => $this->config->getAll(),
'errors' => array(),
'menu' => 'config',
'title' => t('Settings'),
'timezones' => $this->config->getTimezones(),
- 'remember_me_sessions' => $this->authentication->backend('rememberMe')->getAll($this->acl->getUserId()),
- 'last_logins' => $this->lastLogin->getAll($this->acl->getUserId()),
)));
}
- public function notifications()
- {
- $values = $this->request->getValues();
- $this->notification->saveSettings($this->acl->getUserId(), $values);
- $this->response->redirect('?controller=config#notifications');
- }
-
/**
* Validate and save settings
*
@@ -64,17 +52,12 @@ class Config extends Base
$this->response->html($this->template->layout('config_index', array(
'db_size' => $this->config->getDatabaseSize(),
- 'user' => $_SESSION['user'],
- 'user_projects' => $this->project->getAvailableList($this->acl->getUserId()),
- 'notifications' => $this->notification->readSettings($this->acl->getUserId()),
'languages' => $this->config->getLanguages(),
'values' => $values,
'errors' => $errors,
'menu' => 'config',
'title' => t('Settings'),
'timezones' => $this->config->getTimezones(),
- 'remember_me_sessions' => $this->authentication->backend('rememberMe')->getAll($this->acl->getUserId()),
- 'last_logins' => $this->lastLogin->getAll($this->acl->getUserId()),
)));
}
@@ -115,16 +98,4 @@ class Config extends Base
$this->session->flash(t('All tokens have been regenerated.'));
$this->response->redirect('?controller=config');
}
-
- /**
- * Remove a "RememberMe" token
- *
- * @access public
- */
- public function removeRememberMeToken()
- {
- $this->checkCSRFParam();
- $this->authentication->backend('rememberMe')->remove($this->request->getIntegerParam('id'));
- $this->response->redirect('?controller=config&action=index#remember-me');
- }
}