summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-10-08 14:51:27 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-01 17:29:04 +0100
commit9c751c564dd079e3fc2524c59c5b909f0178f43b (patch)
tree08cfd852d687f6db2ebf36ef04ddc29c63423153
parente7e1f088c11890e520619c545f7f28d0f9d6724a (diff)
muser: Rename login_cli_client to login_api_client
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/models/muser.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index 2ec727690..9866f0c86 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -67,18 +67,19 @@ class Muser extends CI_Model {
return $this->duser->login($username, $password);
}
- private function login_cli_client()
+ private function login_api_client()
{
$username = $this->input->post("username");
$password = $this->input->post("password");
+ // TODO keep for now. might be useful if adapted to apikeys instead of passwords
// prefer post parameters if either (username or password) is set
- if ($username === false && $password === false) {
- if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
- $username = $_SERVER['PHP_AUTH_USER'];
- $password = $_SERVER['PHP_AUTH_PW'];
- }
- }
+ //if ($username === false && $password === false) {
+ //if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
+ //$username = $_SERVER['PHP_AUTH_USER'];
+ //$password = $_SERVER['PHP_AUTH_PW'];
+ //}
+ //}
if ($username !== false && $password !== false) {
if ($this->login($username, $password)) {
@@ -279,9 +280,8 @@ class Muser extends CI_Model {
$this->apilogin($this->input->post("apikey"));
}
- # keep for now. might be useful if adapted to apikeys instead of passwords
- //if (is_cli_client()) {
- //$this->login_cli_client();
+ //if (is_api_client()) {
+ //$this->login_api_client();
//}
if ($this->logged_in()) {