Commit b795dcf1 authored by Mathieu Giraud's avatar Mathieu Giraud

js/database.js: wipe login-related content before logout

Even with CORS problems, we want that the user understand that she is logged out.
see #2477
parent 5c9ef4d2
......@@ -826,6 +826,12 @@ Database.prototype = {
},
logout: function() {
document.getElementById('login-container').innerHTML = "";
var dbc = document.getElementById('db_content');
if (dbc) {
document.getElementById('db_auth').innerHTML = "";
dbc.innerHTML = "";
}
db.call('default/user/logout');
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment