X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=index.js;h=cb46c203bb3f63e28f1c292bbee6726321c62398;hb=8443e4c644efeb5a3d8e21cf5502bc46381270cb;hp=13ed7f6890a4bbd1a6d0fd5617b26c12aceaf705;hpb=f31f24404a8a722d54689e56defe4d0a33a5207b;p=zombocom-ai diff --git a/index.js b/index.js index 13ed7f6..cb46c20 100644 --- a/index.js +++ b/index.js @@ -133,7 +133,11 @@ app.get('/index.html', (req, res) => { }); function tardis_app(req, res) { - res.sendFile(__dirname + '/tardis.html'); + if (! req.session.name) { + res.sendFile(__dirname + '/tardis-error.html'); + } else { + res.sendFile(__dirname + '/tardis.html'); + } } app.get('/tardis', tardis_app);