Ivan - Fix download get

This commit is contained in:
ivan 2017-02-15 16:14:27 -03:00
parent 8d1ab2ee91
commit f9ad440bf2
3 changed files with 9 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class LoginController extends Controller {
Response::respondSuccess($this->getUserData());
} else {
Response::respondError(Controller::request('email'));
Response::respondError(ERRORS::INVALID_CREDENTIALS);
}
}

View File

@ -33,7 +33,13 @@ abstract class Controller {
self::$dataRequester = function ($key) {
$app = self::getAppInstance();
return $app->request()->post($key);
$value = $app->request()->post($key);
if(!$value) {
$value = $app->request()->get($key);
}
return $value;
};
}

View File

@ -53,10 +53,10 @@ require './system/edit-mail-template.rb'
require './system/recover-mail-template.rb'
require './system/disable-registration.rb'
require './system/enable-registration.rb'
require './system/get-stats.rb'
require './system/add-api-key.rb'
require './system/delete-api-key.rb'
require './system/get-all-keys.rb'
require './system/file-upload-download.rb'
require './system/csv-import.rb'
require './system/disable-user-system.rb'
require './system/get-stats.rb'