From e4768cd0647d934eff424f73bfd9f5c8f6223c94 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 12 Nov 2018 13:55:40 +0100 Subject: link+log --- app/class/controller.php | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'app/class/controller.php') diff --git a/app/class/controller.php b/app/class/controller.php index f7a3bd6..c722b1a 100644 --- a/app/class/controller.php +++ b/app/class/controller.php @@ -59,30 +59,6 @@ class Controller return $commonsparams; } - public function login($redirect = 'home') - { - if(isset($_POST['pass'])) { - $this->user = $this->usermanager->login($_POST['pass']); - $this->usermanager->writesession($this->user); - } - if($redirect == 'art') { - $this->redirect('?id=' . $this->art->id()); - } else { - $this->redirect('?aff=' . $redirect); - } - } - - public function logout($redirect = 'home') - { - $this->user = $this->usermanager->logout(); - $this->usermanager->writesession($this->user); - if($redirect == 'art') { - $this->redirect('?id=' . $this->art->id()); - } else { - $this->redirect('?aff=' . $redirect); - } - } - @@ -96,11 +72,6 @@ class Controller $this->redirect($this->router->generate($route, $vars)); } - public function uart($id) - { - return $this->router->generate('artread/', ['art' => $id]); - } - } -- cgit v1.2.3