grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026getProjectPath().'/modules/Users/authentication/AuthenticationController.php'; $authController = new \AuthenticationController(); $username = $postData['username']; $password = $postData['password']; if ($authController->login($username, $password, ['passwordEncrypted' => false])) { $usr = new \user(); return ['loginApproved' => true, 'userId' => $usr->retrieve_user_id($username)]; } return ['loginApproved' => false, 'userId' => null]; } /** * @return array */ public function logout() { $paths = new Paths(); require_once $paths->getProjectPath().'/modules/Users/authentication/AuthenticationController.php'; $authController = new \AuthenticationController(); $authController->logout(); return []; } /** * @return array */ public function getServerInfo() { return array(); } }