Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3357487
D11497.id38668.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
871 B
Referenced Files
None
Subscribers
None
D11497.id38668.diff
View Options
diff --git a/lib/keyserver-conn/recovery-utils.js b/lib/keyserver-conn/recovery-utils.js
--- a/lib/keyserver-conn/recovery-utils.js
+++ b/lib/keyserver-conn/recovery-utils.js
@@ -180,7 +180,11 @@
source: RecoveryActionSource,
sessionChange: ClientSessionChange,
userStateBeforeRecovery: PreRequestUserState,
+ hasBeenCancelled: () => boolean,
) => {
+ if (hasBeenCancelled()) {
+ return;
+ }
setNewSession(
dispatch,
sessionChange,
@@ -234,6 +238,7 @@
source,
sessionChange,
userStateBeforeRecovery,
+ hasBeenCancelled,
);
}
} catch (e) {
@@ -248,6 +253,7 @@
source,
genericCookieInvalidation,
userStateBeforeRecovery,
+ hasBeenCancelled,
);
throw e;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 11:50 PM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577231
Default Alt Text
D11497.id38668.diff (871 B)
Attached To
Mode
D11497: [lib] Don't invalidate a session if the recovery is cancelled
Attached
Detach File
Event Timeline
Log In to Comment