diff options
author | Michael Weimann <mail@michael-weimann.eu> | 2018-08-27 12:18:14 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-29 09:02:52 +0100 |
commit | e083e8abc6622ade61fbb51a9364c1c92e7f1f9e (patch) | |
tree | fd10404c5d07ea271c3735e4c50d2d739a5484d0 /core/js | |
parent | 198a45ff75c64d38c1ccb6bd903ee55b446177b3 (diff) | |
download | nextcloud-server-e083e8abc6622ade61fbb51a9364c1c92e7f1f9e.tar.gz nextcloud-server-e083e8abc6622ade61fbb51a9364c1c92e7f1f9e.zip |
Clears the local storage after logout
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/login.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/login.js b/core/js/login.js index 64be29bfec6..8ef76c5717b 100644 --- a/core/js/login.js +++ b/core/js/login.js @@ -41,4 +41,10 @@ $(document).ready(function() { $('form[name=login]').submit(OC.Login.onLogin); $('#remember_login').click(OC.Login.rememberLogin); + + var clearParamRegex = new RegExp('clear=1'); + if (clearParamRegex.test(window.location.href)) { + window.localStorage.clear(); + window.sessionStorage.clear(); + } }); |