dotkernel / api

DotKernel's PSR-7 REST style API built around the Mezzio API skeleton.
https://docs.dotkernel.org/api-documentation/
MIT License
35 stars 5 forks source link

Admin not found after identity update #130

Closed OnitaAndrei closed 2 years ago

OnitaAndrei commented 2 years ago

Changing the identity of the logged-in admin with PATCH in this endpoint /admin/my-account will result in not finding it in the database anymore, throwing the following error

An unexpected error occurred; stack trace:

Error raised in file /var/www/html/apiTest/src/App/src/Middleware/AuthorizationMiddleware.php line 69:
Message: Call to a member function getStatus() on null