Bug fix and Api updates

This commit is contained in:
Vijay Sebastian
2016-02-17 16:02:00 +05:30
parent 5bc5131e3b
commit 3569d6ac48
20 changed files with 444 additions and 250 deletions

View File

@@ -25,7 +25,7 @@ class ApiKey {
$set = $this->setting->where('id', '1')->first();
if ($set->api_enable == 1) {
$key = $set->api_key;
if ($key == $request->input('api-key')) {
if ($key == $request->input('api_key')) {
return $next($request);
} else {
$result = 'wrong api key';