diff --git a/app/views/layout.html b/app/views/layout.html index ea2109249b..e1869d3872 100644 --- a/app/views/layout.html +++ b/app/views/layout.html @@ -23,7 +23,7 @@ {% block footer_support_links %} {% endblock %} \ No newline at end of file diff --git a/lib/_/clear-data.html b/lib/prototype-admin/clear-data.html similarity index 100% rename from lib/_/clear-data.html rename to lib/prototype-admin/clear-data.html diff --git a/server.js b/server.js index fb91efff99..5955906104 100644 --- a/server.js +++ b/server.js @@ -75,11 +75,11 @@ if (typeof(routes) != "function"){ app.use("/", routes); } -app.get('/_/clear-data', function(req, res){ +app.get('/prototype-admin/clear-data', function(req, res){ - req.session.data = {}; + req.session.destroy(); - res.render("_/clear-data"); + res.render("prototype-admin/clear-data"); });