Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356737
D11497.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.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, 8:24 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577231
Default Alt Text
D11497.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