mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-18 07:46:01 +02:00
Added login and logout forms
This commit is contained in:
@@ -43,7 +43,7 @@ final class Router implements RouterInterface
|
||||
if ($this->get) {
|
||||
switch ($this->get[self::CONTROLLER]) {
|
||||
case 'user':
|
||||
$userController = new User();
|
||||
$userController = new User($this->core);
|
||||
switch ($this->get[self::ACTION]) {
|
||||
case 'login':
|
||||
return $userController->login();
|
||||
|
Reference in New Issue
Block a user