]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Fix logout
authorJohannes Zellner <johannes@nebulon.de>
Tue, 1 Mar 2016 17:38:03 +0000 (18:38 +0100)
committerJohannes Zellner <johannes@nebulon.de>
Tue, 1 Mar 2016 17:38:03 +0000 (18:38 +0100)
app/js/app.js

index c7cb1336def66abcf4ba419abce8fca0517cfadf..872148670ffcaa041733c241e506878207034772 100644 (file)
@@ -27,8 +27,8 @@ function login(username, password) {
 
 function logout() {
     app.session.valid = false;
-    app.session.username = username;
-    app.session.password = password;
+    app.session.username = null;
+    app.session.password = null;
 
     delete localStorage.username;
     delete localStorage.password;