1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

sync with 0.16

This commit is contained in:
shimon 2022-08-17 10:36:38 +03:00
parent cc887beae9
commit 88f6a67802

View file

@ -787,7 +787,7 @@ App::patch('/v1/users/:userId/password')
->inject('events') ->inject('events')
->action(function (string $userId, string $password, Response $response, Database $dbForProject, Event $events) { ->action(function (string $userId, string $password, Response $response, Database $dbForProject, Event $events) {
$user = $dbForProject->getDocument('users', $userId); $user = $dbForProject->getDocument('users', $userId);
if ($user->isEmpty()) { if ($user->isEmpty()) {
throw new Exception(Exception::USER_NOT_FOUND); throw new Exception(Exception::USER_NOT_FOUND);