Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3490326
D6736.id22637.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
980 B
Referenced Files
None
Subscribers
None
D6736.id22637.diff
View Options
diff --git a/keyserver/src/creators/account-creator.js b/keyserver/src/creators/account-creator.js
--- a/keyserver/src/creators/account-creator.js
+++ b/keyserver/src/creators/account-creator.js
@@ -111,10 +111,13 @@
INSERT INTO users(id, username, hash, creation_time)
VALUES ${[newUserRow]}
`;
+
+ const { primaryIdentityPublicKey } = request;
const [userViewerData] = await Promise.all([
createNewUserCookie(id, {
platformDetails: request.platformDetails,
deviceToken,
+ primaryIdentityPublicKey,
}),
deleteCookie(viewer.cookieID),
dbQuery(newUserQuery),
diff --git a/lib/types/account-types.js b/lib/types/account-types.js
--- a/lib/types/account-types.js
+++ b/lib/types/account-types.js
@@ -52,6 +52,7 @@
+calendarQuery?: ?CalendarQuery,
+deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest,
+platformDetails: PlatformDetails,
+ +primaryIdentityPublicKey?: ?string,
};
export type RegisterResponse = {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 3:55 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677404
Default Alt Text
D6736.id22637.diff (980 B)
Attached To
Mode
D6736: [keyserver] Populate `public_key` column of `cookies` table on register
Attached
Detach File
Event Timeline
Log In to Comment