From 2b28eaf7d0677421b1ca2a3f705db6c6c085a595 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Wed, 21 Jan 2015 17:14:49 +0100 Subject: [PATCH] Logout: localStorage.clear --- auth/static/js/logout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/static/js/logout.js b/auth/static/js/logout.js index 593eb588..3419b9d2 100644 --- a/auth/static/js/logout.js +++ b/auth/static/js/logout.js @@ -5,7 +5,7 @@ function logout () { var msg="Are you sure you want to logout as " + username + " ?"; /* redirect to /logout, see urls.py */ if (confirm(msg)){ - localStorage.removeItem('user'); + localStorage.clear(); window.location="/logout/"; } } -- 2.43.0