bug fixes / dbmapper fixes

This commit is contained in:
Dennis Eichhorn 2021-12-19 20:20:39 +01:00
parent f13220e817
commit c21a3600c2
3 changed files with 32 additions and 5 deletions

View File

@ -93,8 +93,11 @@ final class ApiController extends Controller
} }
/** /**
* @param Profile $profile Profile to create in the database * Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
* *
* @return void * @return void
* *
@ -102,7 +105,7 @@ final class ApiController extends Controller
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiProfileTempLoginCreate(RequestAbstract $request, ResponseAbstract $response) : void public function apiProfileTempLoginCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
$account = AccountMapper::get()->where('id', $request->header->account)->execute(); $account = AccountMapper::get()->where('id', $request->header->account)->execute();
$account->tempPassword = \password_hash(\random_bytes(64), \PASSWORD_BCRYPT); $account->tempPassword = \password_hash(\random_bytes(64), \PASSWORD_BCRYPT);

View File

@ -1,4 +1,16 @@
<?php declare(strict_types=1); <?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Template
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
echo $this->getData('nav')->render(); echo $this->getData('nav')->render();
?> ?>

View File

@ -1,3 +1,15 @@
<?php declare(strict_types=1); <?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Template
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
echo $this->getData('nav')->render(); echo $this->getData('nav')->render();