Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3493289
D6895.id23127.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6895.id23127.diff
View Options
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
@@ -309,6 +309,11 @@
return response;
}
+const signedIdentityKeysBlobValidator = tShape({
+ payload: t.String,
+ signature: t.String,
+});
+
const logInRequestInputValidator = tShape({
username: t.maybe(t.String),
usernameOrEmail: t.maybe(t.union([tEmail, tOldValidUsername])),
@@ -319,6 +324,7 @@
platformDetails: tPlatformDetails,
source: t.maybe(t.enums.of(values(logInActionSources))),
primaryIdentityPublicKey: t.maybe(tRegex(primaryIdentityPublicKeyRegex)),
+ signedIdentityKeysBlob: t.maybe(signedIdentityKeysBlobValidator),
});
async function logInResponder(
diff --git a/lib/actions/user-actions.js b/lib/actions/user-actions.js
--- a/lib/actions/user-actions.js
+++ b/lib/actions/user-actions.js
@@ -120,8 +120,7 @@
): ((logInInfo: LogInInfo) => Promise<LogInResult>) =>
async logInInfo => {
const watchedIDs = threadWatcher.getWatchedIDs();
- const { logInActionSource, signedIdentityKeysBlob, ...restLogInInfo } =
- logInInfo;
+ const { logInActionSource, ...restLogInInfo } = logInInfo;
const response = await callServerEndpoint(
'log_in',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 2:46 AM (20 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679785
Default Alt Text
D6895.id23127.diff (1 KB)
Attached To
Mode
D6895: [keyserver] Add `signedIdentityKeysBlobValidator` to `logInRequestInputValidator`
Attached
Detach File
Event Timeline
Log In to Comment