From eaafc714cb9da730398a96eeffde83e00dad2b51 Mon Sep 17 00:00:00 2001 From: Alpha Date: Tue, 20 Feb 2018 17:56:28 +0100 Subject: [PATCH] =?UTF-8?q?=C3=A4nderungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {css => assets/css}/main_style.css | 0 assets/{ => js}/jquery-3.3.1.min.js | 0 index.js | 3 ++- views/index.hbs | 12 +++++++----- views/login.hbs | 2 +- 5 files changed, 10 insertions(+), 7 deletions(-) rename {css => assets/css}/main_style.css (100%) rename assets/{ => js}/jquery-3.3.1.min.js (100%) diff --git a/css/main_style.css b/assets/css/main_style.css similarity index 100% rename from css/main_style.css rename to assets/css/main_style.css diff --git a/assets/jquery-3.3.1.min.js b/assets/js/jquery-3.3.1.min.js similarity index 100% rename from assets/jquery-3.3.1.min.js rename to assets/js/jquery-3.3.1.min.js diff --git a/index.js b/index.js index dcbc130..c4021ce 100644 --- a/index.js +++ b/index.js @@ -51,10 +51,11 @@ app.get('/assets/*', function(req, res){ res.sendFile(__dirname + req.originalUrl) }) + app.post('/',function(req,res){ if( req.body.name === 'Simon' && req.body.pass === 'password' || - req.body.name === 'USER2' && req.body.pass === 'rfcgvhbßä06' + req.body.name === 'Suxxi' && req.body.pass === 'GSGSpandau' ){ req.session.name = req.body.name req.session.pass = req.body.pass diff --git a/views/index.hbs b/views/index.hbs index 603c253..19ad1e0 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -1,13 +1,13 @@ - +
- - + + @@ -15,14 +15,16 @@ + {{#instances}} - - + + + {{/instances}} diff --git a/views/login.hbs b/views/login.hbs index 0e75c75..c6326f6 100644 --- a/views/login.hbs +++ b/views/login.hbs @@ -1,7 +1,7 @@ Session Management in NodeJS using Express4.2 - +
Level Gold ClassAktion Exp
{{name}}{{level}}{{gold}}{{level}}{{gold}} {{class}}{{currentAction}}