From ac527c6411dc546a94f39dc5953ccfb1922121f1 Mon Sep 17 00:00:00 2001 From: Fabien Vignon Date: Fri, 9 Feb 2018 11:57:45 +0100 Subject: [PATCH] add a logout page allows destroying user session with a minimum number of loaded dependenciesi. Can be Used for SSO forwards (logout). Co-authored-by: Nicolas PARQUET --- www/logout/index.html | 16 ++++++++++++++++ www/logout/main.js | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 www/logout/index.html create mode 100644 www/logout/main.js diff --git a/www/logout/index.html b/www/logout/index.html new file mode 100644 index 000000000..365c4bbe2 --- /dev/null +++ b/www/logout/index.html @@ -0,0 +1,16 @@ + + + + + CryptPad: Zero Knowledge, Collaborative Real Time Editing + + + + + + + + diff --git a/www/logout/main.js b/www/logout/main.js new file mode 100644 index 000000000..acd8e8b02 --- /dev/null +++ b/www/logout/main.js @@ -0,0 +1,5 @@ +define(['/bower_components/localforage/dist/localforage.min.js'], function (localForage) { + localForage.clear(); + sessionStorage.clear(); + localStorage.clear(); +});