Merge pull request #7650 from appwrite/fix-missing-event-param
Fix missing userId on update challenge
This commit is contained in:
commit
54db17dba2
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue