[#6402] load the request info context during password/OAuth2/OTP authentication

This commit is contained in:
Gani Georgiev committed 2025-02-10 16:57:25 +02:00
1 parent 6a7f3a21fb
commit 26f0df36bc
8 files changed
+57 -1

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ func recordAuthWithOTP(e *core.RequestEvent) error {
return firstApiError(err, e.BadRequestError("An error occurred while validating the submitted data.", err))
}
e.Set(core.RequestEventKeyInfoContext, core.RequestInfoContextOTP)
event := new(core.RecordAuthWithOTPRequestEvent)
event.RequestEvent = e
event.Collection = collection