Ivan - Fix download get
This commit is contained in:
parent
8d1ab2ee91
commit
f9ad440bf2
|
@ -41,7 +41,7 @@ class LoginController extends Controller {
|
|||
|
||||
Response::respondSuccess($this->getUserData());
|
||||
} else {
|
||||
Response::respondError(Controller::request('email'));
|
||||
Response::respondError(ERRORS::INVALID_CREDENTIALS);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue