Page MenuHomePhabricator

D6078.diff
No OneTemporary

D6078.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
@@ -311,7 +311,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),
@@ -324,6 +324,7 @@
await validateInput(viewer, siweAuthRequestInputValidator, input);
const request: SIWEAuthRequest = input;
const { message, signature } = request;
+ const calendarQuery = normalizeCalendarQuery(request.calendarQuery);
// 1. Ensure that `message` is a well formed Comm SIWE Auth message.
const siweMessage: SIWEMessage = new SiweMessage(message);
@@ -365,7 +366,7 @@
if (!userID) {
throw new ServerError('placeholder_error');
}
- return await processSuccessfulLogin(viewer, input, userID);
+ return await processSuccessfulLogin(viewer, input, userID, calendarQuery);
}
const updatePasswordRequestInputValidator = tShape({

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 7:13 AM (15 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496780
Default Alt Text
D6078.diff (1 KB)

Event Timeline