1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Merge pull request #7650 from appwrite/fix-missing-event-param

Fix missing userId on update challenge
This commit is contained in:
Jake Barnby 2024-02-25 03:00:32 +13:00 committed by GitHub
commit 54db17dba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3940,6 +3940,9 @@ App::put('/v1/account/mfa/challenge')
$dbForProject->updateDocument('sessions', $sessionId, $session->setAttribute('factors', $provider, Document::SET_TYPE_APPEND));
$queueForEvents
->setParam('userId', $user->getId());
$response->dynamic($session, Response::MODEL_SESSION);
});