mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
require memo between 5 and 150 character by send transaction
This commit is contained in:
parent
bbb54fa9f7
commit
d8697a98ad
@ -156,6 +156,9 @@ class AppRequestsController extends AppController
|
||||
if($required_fields !== true) {
|
||||
return $this->returnJson($required_fields);
|
||||
}
|
||||
if(!isset($params['memo']) || count($params['memo']) < 5 || count($params['memo']) > 150) {
|
||||
return $this->returnJson(['state' => 'error', 'msg' => 'memo is not set or not in expected range [5;150]']);
|
||||
}
|
||||
$params['transaction_type'] = 'transfer';
|
||||
|
||||
$requestAnswear = $this->JsonRequestClient->sendRequest(json_encode($params), '/createTransaction');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user