[FIX] parameter array for issuing

This commit is contained in:
Florian Weiss 2020-05-20 16:58:02 +02:00
parent 04634f4278
commit f765b1fbff

View file

@ -25,13 +25,11 @@ class Issuer {
$requestData['SkillId'] = $ID; $requestData['SkillId'] = $ID;
} }
$requestData = [ $requestData['Level'] = $vtype;
"Level" => $vtype, $requestData['VerifierId'] = $this->settings->getVerifierID();
"VerifierId" => $this->settings->getVerifierID(), $requestData['Username'] = $useremail;
"Username" => $useremail, $requestData['AutoConfirm'] = true;
"AutoConfirm" => true, $requestData['Signature'] = '';
"Signature" => ''
];
$json = json_encode($requestData); $json = json_encode($requestData);
$signature = ($vtype==="self") ? 'sdself' : $this->settings->getUserSecret(); $signature = ($vtype==="self") ? 'sdself' : $this->settings->getUserSecret();