mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Add default values to the authentication parameters
This commit is contained in:
parent
f8925ddb0d
commit
07b628324d
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ class Api {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Basic auth.
|
// Basic auth.
|
||||||
$username = $_SERVER['PHP_AUTH_USER'];
|
$username = $_SERVER['PHP_AUTH_USER'] ?? NULL;
|
||||||
|
|
||||||
$password = $_SERVER['PHP_AUTH_PW'];
|
$password = $_SERVER['PHP_AUTH_PW'] ?? NULL;
|
||||||
|
|
||||||
$userdata = $this->CI->accounts->check_login($username, $password);
|
$userdata = $this->CI->accounts->check_login($username, $password);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue