mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
commit
8f1e516cb6
@ -26,6 +26,13 @@ class Api extends Main
|
||||
{
|
||||
die("The API has been disabled\n");
|
||||
}
|
||||
|
||||
// if ldap is configured and no api token is configured, fail the request
|
||||
if ((config_item('require_auth') == true) && (config_item('apikey') == ''))
|
||||
{
|
||||
die("API key not configured");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function index()
|
||||
|
@ -120,7 +120,7 @@ class Auth extends CI_Controller
|
||||
public
|
||||
function alpha_dash_dot($str)
|
||||
{
|
||||
return (!preg_match("/^([-a-z0-9_-\.])+$/i", $str)) ? FALSE : TRUE;
|
||||
return (!preg_match("/^([-a-z0-9_\-\.])+$/i", $str)) ? FALSE : TRUE;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user