HTTP basic authentication

Set this as default authentication, providing codeception test case
This commit is contained in:
paolo
2016-04-15 15:41:38 +02:00
parent aec2e7b5ac
commit 9aef5dcc30
12 changed files with 4329 additions and 75 deletions
+3 -5
View File
@@ -33,19 +33,17 @@ class FHC_Auth
*
* @param string $username
* @param string $password
* @return bool
* @return bool
*/
function auth($username, $password)
function basicAuthentication($username, $password)
{
$auth = new authentication();
if ($auth->checkpassword($username, $password))
if($auth->checkpassword($username, $password))
{
//echo 'Auth-Method-True';
return true;
}
else
{
//echo 'Auth-Method-False';
return false;
}
}