mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -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()
|
||||
{
|
||||
if (config_item('apikey') != $this->input->get('apikey'))
|
||||
{
|
||||
die("Invalid API key\n");
|
||||
}
|
||||
|
||||
$languages = $this->languages->get_languages();
|
||||
echo json_encode($languages);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user