mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-11 13:28:40 +00:00
bug fixes / dbmapper fixes
This commit is contained in:
parent
f13220e817
commit
c21a3600c2
|
|
@ -93,8 +93,11 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* @param Profile $profile Profile to create in the database
|
||||
* @param RequestAbstract $request Request
|
||||
* Routing end-point for application behaviour.
|
||||
*
|
||||
* @param RequestAbstract $request Request
|
||||
* @param ResponseAbstract $response Response
|
||||
* @param mixed $data Generic data
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
|
|
@ -102,7 +105,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @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->tempPassword = \password_hash(\random_bytes(64), \PASSWORD_BCRYPT);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user