displayRegister(); } return (new Sub\AuthController($model))->confirmRegister($_POST, $session); } final public function login(MutableSessionHandle $session): HttpResponse { $model = new AuthModel(new AccountGateway(new Connexion(get_database()))); if ($_SERVER['REQUEST_METHOD'] === 'GET') { return (new Sub\AuthController($model))->displayLogin(); } return (new Sub\AuthController($model))->confirmLogin($_POST, $session); } }