mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-16 04:28:39 +00:00
fix tests
This commit is contained in:
parent
290f2e87ea
commit
3e37d5f89d
|
|
@ -2098,16 +2098,18 @@ final class ApiController extends Controller
|
||||||
*/
|
*/
|
||||||
private function createProfileForAccount(Account $account, RequestAbstract $request) : void
|
private function createProfileForAccount(Account $account, RequestAbstract $request) : void
|
||||||
{
|
{
|
||||||
|
// @todo: why do we need the following lines?
|
||||||
if (($request->getDataString('password') ?? '') === ''
|
if (($request->getDataString('password') ?? '') === ''
|
||||||
|| ($request->getDataString('user') ?? '') === ''
|
|| ($request->getDataString('user') ?? '') === ''
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->app->moduleManager->get('Profile')->apiProfileCreateDbEntry(
|
$request->setData('iaccount-idlist', $account->id);
|
||||||
new \Modules\Profile\Models\Profile($account),
|
|
||||||
$request
|
$internalResponse = new HttpResponse();
|
||||||
);
|
|
||||||
|
$this->app->moduleManager->get('Profile', 'Api')->apiProfileCreate($request, $internalResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user