From 6e9ecb23b285c0e12d8e5073896ad6356a65f8d6 Mon Sep 17 00:00:00 2001 From: Paolo Date: Fri, 11 Feb 2022 12:55:30 +0100 Subject: [PATCH] Removed lint test file --- application/controllers/system/Test.php | 88 ------------------------- 1 file changed, 88 deletions(-) delete mode 100644 application/controllers/system/Test.php diff --git a/application/controllers/system/Test.php b/application/controllers/system/Test.php deleted file mode 100644 index c83e4f6cb..000000000 --- a/application/controllers/system/Test.php +++ /dev/null @@ -1,88 +0,0 @@ -load->view('system/login/usernamePassword'); - } - - /** - * Called with HTTP POST via ajax to login using the LDAP authentication - */ - public function loginLDAP() - { - $username = $this->input->post('username'); - $password = $this->input->post('password'); - - $this->load->library('AuthLib', array(false)); // without authentication otherwise loooooop! - - $login = $this->authlib->loginLDAP($username, $password); - if (isSuccess($login)) - { - $this->outputJsonSuccess($this->authlib->getLandingPage()); // if login is success then retrieves the desired page - } - else - { - $this->outputJsonError(getCode($login)); // returns the error code - } - } - - /** - * Called with HTTP POST via ajax to login as another user specified by uid - */ - public function loginASByUid() - { - $uid = $this->input->get('uid'); - - // With authentication -> you must be already logged to gain another identity - $this->load->library('AuthLib'); - - $loginAS = $this->authlib->loginASByUID($uid); - $this->outputJson($loginAS); // returns the error code - } - - /** - * Called with HTTP POST via ajax to login as another user specified by person id - */ - public function loginASByPersonId() - { - $person_id = $this->input->get('person_id'); - - // With authentication -> you must be already logged to gain another identity - $this->load->library('AuthLib'); - - $loginAS = $this->authlib->loginASByPersonId($person_id); - if (isSuccess($loginAS)) - { - $this->outputJsonSuccess(true); // obtained! - } - else - { - $this->outputJsonSuccess(getCode($loginAS)); // returns the error code - }; - } - - /** - * To login into the system with email and code as credentials - */ - public function emailCode() - { - } - - /** - * To login into the system using SSO - */ - public function sso() - { -}