authService->login($loginUser,$passwordUser)){ return true; } return false; } public function resgister($loginUser,$passwordUser): bool{ if(!Validation::val_string($passwordUser) || !Validation::val_string($loginUser)) throw new \Exception(" some wrong with cred !!!!!"); if($this->authService->register($loginUser,$passwordUser)){ return true; } return false; } public function deconnecter():bool{ try { $this->authService->logoutUser(); return true; } catch (\Exception $e) { return false; } } } ?>