mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-27 05:21:11 -05:00
Merge pull request #445 from SimonSickle/patch-1
Protect the langs api call with the apiKey
This commit is contained in:
commit
ba6964c0a6
@ -209,6 +209,11 @@ class Api extends Main
|
|||||||
|
|
||||||
function langs()
|
function langs()
|
||||||
{
|
{
|
||||||
|
if (config_item('apikey') != $this->input->get('apikey'))
|
||||||
|
{
|
||||||
|
die("Invalid API key\n");
|
||||||
|
}
|
||||||
|
|
||||||
$languages = $this->languages->get_languages();
|
$languages = $this->languages->get_languages();
|
||||||
echo json_encode($languages);
|
echo json_encode($languages);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user