Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3506409
D5312.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
D5312.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
@@ -4,6 +4,7 @@
import t from 'tcomb';
import bcrypt from 'twin-bcrypt';
+import { policyTypes } from 'lib/facts/policies.js';
import { hasMinCodeVersion } from 'lib/shared/version-utils';
import type {
ResetPasswordRequest,
@@ -63,6 +64,7 @@
updateUserSettings,
} from '../updaters/account-updaters';
import { userSubscriptionUpdater } from '../updaters/user-subscription-updaters';
+import { viewerAcknowledgmentUpdater } from '../updaters/viewer-acknowledgment-updater.js';
import { validateInput } from '../utils/validation-utils';
import {
entryQueryInputValidator,
@@ -258,6 +260,17 @@
}
const messageSelectionCriteria = { threadCursors, joinedThreads: true };
+ let acknowledgmentUpdate = undefined;
+ if (
+ input.source === logInActionSources.logInFromNativeForm ||
+ (!hasMinCodeVersion(viewer.platformDetails, 99999) && !input.source)
+ ) {
+ acknowledgmentUpdate = viewerAcknowledgmentUpdater(
+ viewer,
+ policyTypes.tosAndPrivacyPolicy,
+ );
+ }
+
const [
threadsResult,
messagesResult,
@@ -270,6 +283,7 @@
calendarQuery ? fetchEntryInfos(viewer, [calendarQuery]) : undefined,
fetchKnownUserInfos(viewer),
fetchLoggedInUserInfo(viewer),
+ acknowledgmentUpdate,
]);
const rawEntryInfos = entriesResult ? entriesResult.rawEntryInfos : null;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 4:30 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2688411
Default Alt Text
D5312.diff (1 KB)
Attached To
Mode
D5312: [keyserver] update acknowledgment table in login was performed from proper source
Attached
Detach File
Event Timeline
Log In to Comment