Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3512573
D13952.id45859.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1012 B
Referenced Files
None
Subscribers
None
D13952.id45859.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
@@ -32,6 +32,8 @@
userSettingsTypes,
notificationTypeValues,
authActionSources,
+ recoveryFromDataHandlerActionSources,
+ recoveryFromReduxActionSources,
} from 'lib/types/account-types.js';
import {
type ClientAvatar,
@@ -781,7 +783,16 @@
initialContentEncryptedMessage,
initialNotificationsEncryptedMessage,
doNotRegister,
+ source,
} = request;
+ if (
+ Object.values(recoveryFromReduxActionSources).includes(source) ||
+ Object.values(recoveryFromDataHandlerActionSources).includes(source)
+ ) {
+ console.log(
+ `Session recovery attempted by userID=${userID} source=${source ?? ''}`,
+ );
+ }
const calendarQuery = normalizeCalendarQuery(request.calendarQuery);
// 1. Check if there's already a user for this userID. Simultaneously, get
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 8:28 PM (24 m, 33 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692399
Default Alt Text
D13952.id45859.diff (1012 B)
Attached To
Mode
D13952: [keyserver] Log on keyserver when session recovery is attempted
Attached
Detach File
Event Timeline
Log In to Comment