diff --git a/js/app.js b/js/app.js index bfab05a7..b9a4ff67 100644 --- a/js/app.js +++ b/js/app.js @@ -207,7 +207,7 @@ app = Sammy('#main', function (sam) { store.set('path', req.path); // Redirect to login page if no credentials stored - if (!store.get('connected') != 'true') { + if (!store.get('connected')) { req.redirect('#/login'); return false; }