Page MenuHomePhabricator

D6078.id20279.diff
No OneTemporary

D6078.id20279.diff

diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -314,7 +314,7 @@
const siweAuthRequestInputValidator = tShape({
signature: t.String,
message: t.String,
- calendarQuery: t.maybe(entryQueryInputValidator),
+ calendarQuery: entryQueryInputValidator,
deviceTokenUpdateRequest: t.maybe(deviceTokenUpdateRequestInputValidator),
platformDetails: tPlatformDetails,
watchedIDs: t.list(t.String),
@@ -332,6 +332,7 @@
deviceTokenUpdateRequest,
platformDetails,
} = request;
+ const calendarQuery = normalizeCalendarQuery(request.calendarQuery);
// 1. Ensure that `message` is a well formed Comm SIWE Auth message.
const siweMessage: SIWEMessage = new SiweMessage(message);
@@ -383,7 +384,7 @@
}
// 5. Complete login with call to `processSuccessfulLogin(...)`.
- return await processSuccessfulLogin(viewer, input, userID);
+ return await processSuccessfulLogin(viewer, input, userID, calendarQuery);
}
const updatePasswordRequestInputValidator = tShape({

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 6, 11:56 PM (21 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251486
Default Alt Text
D6078.id20279.diff (1 KB)

Event Timeline